public static enum EntitySpawnPlacementRegistry.PlacementType extends java.lang.Enum<EntitySpawnPlacementRegistry.PlacementType> implements IExtensibleEnum
Enum Constant and Description |
---|
IN_WATER |
NO_RESTRICTIONS |
ON_GROUND |
Modifier and Type | Field and Description |
---|---|
private TriPredicate<IWorldReader,BlockPos,EntityType<?>> |
predicate |
Modifier and Type | Method and Description |
---|---|
boolean |
canSpawnAt(IWorldReader world,
BlockPos pos,
EntityType<?> type) |
static EntitySpawnPlacementRegistry.PlacementType |
create(java.lang.String name,
TriPredicate<IWorldReader,BlockPos,EntityType<? extends MobEntity>> predicate) |
static EntitySpawnPlacementRegistry.PlacementType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EntitySpawnPlacementRegistry.PlacementType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
init
public static final EntitySpawnPlacementRegistry.PlacementType ON_GROUND
public static final EntitySpawnPlacementRegistry.PlacementType IN_WATER
public static final EntitySpawnPlacementRegistry.PlacementType NO_RESTRICTIONS
private TriPredicate<IWorldReader,BlockPos,EntityType<?>> predicate
public static EntitySpawnPlacementRegistry.PlacementType[] values()
for (EntitySpawnPlacementRegistry.PlacementType c : EntitySpawnPlacementRegistry.PlacementType.values()) System.out.println(c);
public static EntitySpawnPlacementRegistry.PlacementType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static EntitySpawnPlacementRegistry.PlacementType create(java.lang.String name, TriPredicate<IWorldReader,BlockPos,EntityType<? extends MobEntity>> predicate)
public boolean canSpawnAt(IWorldReader world, BlockPos pos, EntityType<?> type)