Package net.minecraft.world.raid
Enum Raid.WaveMember
- java.lang.Object
-
- java.lang.Enum<Raid.WaveMember>
-
- net.minecraft.world.raid.Raid.WaveMember
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Raid.WaveMember>
,IExtensibleEnum
- Enclosing class:
- Raid
public static enum Raid.WaveMember extends java.lang.Enum<Raid.WaveMember> implements IExtensibleEnum
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EVOKER
PILLAGER
RAVAGER
VINDICATOR
WITCH
-
Field Summary
Fields Modifier and Type Field Description private EntityType<? extends AbstractRaiderEntity>
entityType
private int[]
spawnsPerWaveBeforeBonus
private static Raid.WaveMember[]
VALUES
-
Constructor Summary
Constructors Modifier Constructor Description private
WaveMember(EntityType<? extends AbstractRaiderEntity> p_i50602_3_, int[] p_i50602_4_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Raid.WaveMember
create(java.lang.String name, EntityType<? extends AbstractRaiderEntity> typeIn, int[] waveCountsIn)
The waveCountsIn integer decides how many entities of the EntityType defined in typeIn will spawn in each wave.void
init()
Deprecated.static Raid.WaveMember
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Raid.WaveMember[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
VINDICATOR
public static final Raid.WaveMember VINDICATOR
-
EVOKER
public static final Raid.WaveMember EVOKER
-
PILLAGER
public static final Raid.WaveMember PILLAGER
-
WITCH
public static final Raid.WaveMember WITCH
-
RAVAGER
public static final Raid.WaveMember RAVAGER
-
-
Field Detail
-
VALUES
private static Raid.WaveMember[] VALUES
-
entityType
private final EntityType<? extends AbstractRaiderEntity> entityType
-
spawnsPerWaveBeforeBonus
private final int[] spawnsPerWaveBeforeBonus
-
-
Constructor Detail
-
WaveMember
private WaveMember(EntityType<? extends AbstractRaiderEntity> p_i50602_3_, int[] p_i50602_4_)
-
-
Method Detail
-
values
public static Raid.WaveMember[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Raid.WaveMember c : Raid.WaveMember.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Raid.WaveMember valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
create
public static Raid.WaveMember create(java.lang.String name, EntityType<? extends AbstractRaiderEntity> typeIn, int[] waveCountsIn)
The waveCountsIn integer decides how many entities of the EntityType defined in typeIn will spawn in each wave. For example, one ravager will always spawn in wave 3.
-
init
@Deprecated public void init()
Deprecated.Description copied from interface:IExtensibleEnum
Called by generated factory code to do any post-constructor setup required by the enum. Should not be called manually.- Specified by:
init
in interfaceIExtensibleEnum
-
-