Package net.minecraft.world.entity.raid
Enum Class Raid.RaiderType
- All Implemented Interfaces:
Serializable
,Comparable<Raid.RaiderType>
,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 TypeFieldDescription(package private) final EntityType<? extends Raider>
(package private) final int[]
(package private) static Raid.RaiderType[]
-
Constructor Summary
ModifierConstructorDescriptionprivate
RaiderType
(EntityType<? extends Raider> p_37821_, int[] p_37822_) -
Method Summary
Modifier and TypeMethodDescriptionstatic Raid.RaiderType
create
(String name, EntityType<? extends Raider> 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.RaiderType
Returns the enum constant of this class with the specified name.static Raid.RaiderType[]
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
final int[] spawnsPerWaveBeforeBonus
-
-
Constructor Details
-
RaiderType
-
-
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.RaiderType create(String name, EntityType<? extends Raider> 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
-