Package net.minecraft.world.raid
Enum Class Raid.WaveMember
- All Implemented Interfaces:
Serializable
,Comparable<Raid.WaveMember>
,Constable
,IExtensibleEnum
- Enclosing class:
- Raid
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final EntityType<? extends AbstractRaiderEntity>
private final int[]
private static Raid.WaveMember[]
-
Constructor Summary
ModifierConstructorDescriptionprivate
WaveMember
(EntityType<? extends AbstractRaiderEntity> p_i50602_3_, int[] p_i50602_4_) -
Method Summary
Modifier and TypeMethodDescriptionstatic Raid.WaveMember
create
(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
Returns the enum constant of this class with the specified name.static Raid.WaveMember[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
VINDICATOR
-
EVOKER
-
PILLAGER
-
WITCH
-
RAVAGER
-
-
Field Details
-
VALUES
-
entityType
-
spawnsPerWaveBeforeBonus
private final int[] spawnsPerWaveBeforeBonus
-
-
Constructor Details
-
WaveMember
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
create
public static Raid.WaveMember create(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.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
-