Package net.minecraft.entity
Enum Class EntitySpawnPlacementRegistry.PlacementType
java.lang.Object
java.lang.Enum<EntitySpawnPlacementRegistry.PlacementType>
net.minecraft.entity.EntitySpawnPlacementRegistry.PlacementType
- All Implemented Interfaces:
Serializable
,Comparable<EntitySpawnPlacementRegistry.PlacementType>
,Constable
,IExtensibleEnum
- Enclosing class:
- EntitySpawnPlacementRegistry
public static enum EntitySpawnPlacementRegistry.PlacementType
extends Enum<EntitySpawnPlacementRegistry.PlacementType>
implements IExtensibleEnum
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprivate
private
PlacementType
(TriPredicate<IWorldReader, BlockPos, EntityType<?>> predicate) -
Method Summary
Modifier and TypeMethodDescriptionboolean
canSpawnAt
(IWorldReader world, BlockPos pos, EntityType<?> type) create
(String name, TriPredicate<IWorldReader, BlockPos, EntityType<? extends MobEntity>> predicate) Returns the enum constant of this class with the specified name.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
-
PlacementType
private PlacementType() -
PlacementType
-
-
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 EntitySpawnPlacementRegistry.PlacementType create(String name, TriPredicate<IWorldReader, BlockPos, EntityType<? extends MobEntity>> predicate) -
canSpawnAt
-