Package net.minecraft.world.entity
Enum Class SpawnPlacements.Type
- All Implemented Interfaces:
Serializable
,Comparable<SpawnPlacements.Type>
,Constable
,IExtensibleEnum
- Enclosing class:
- SpawnPlacements
public static enum SpawnPlacements.Type
extends Enum<SpawnPlacements.Type>
implements IExtensibleEnum
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
Type()
private
Type
(TriPredicate<LevelReader, BlockPos, EntityType<?>> predicate) -
Method Summary
Modifier and TypeMethodDescriptionboolean
canSpawnAt
(LevelReader world, BlockPos pos, EntityType<?> type) static SpawnPlacements.Type
create
(String name, TriPredicate<LevelReader, BlockPos, EntityType<? extends Mob>> predicate) static SpawnPlacements.Type
Returns the enum constant of this class with the specified name.static SpawnPlacements.Type[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface net.minecraftforge.common.IExtensibleEnum
init
-
Enum Constant Details
-
ON_GROUND
-
IN_WATER
-
NO_RESTRICTIONS
-
IN_LAVA
-
-
Field Details
-
predicate
-
-
Constructor Details
-
Type
private Type() -
Type
-
-
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 SpawnPlacements.Type create(String name, TriPredicate<LevelReader, BlockPos, EntityType<? extends Mob>> predicate) -
canSpawnAt
-