public static enum EntitySpawnPlacementRegistry.SpawnPlacementType extends java.lang.Enum<EntitySpawnPlacementRegistry.SpawnPlacementType> implements IExtensibleEnum
Modifier and Type | Method and Description |
---|---|
boolean |
canSpawnAt(IWorldReaderBase world,
BlockPos pos,
EntityType<? extends EntityLiving> type) |
static EntitySpawnPlacementRegistry.SpawnPlacementType |
create(java.lang.String name,
TriPredicate<IWorldReaderBase,BlockPos,EntityType<? extends EntityLiving>> predicate) |
static EntitySpawnPlacementRegistry.SpawnPlacementType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EntitySpawnPlacementRegistry.SpawnPlacementType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EntitySpawnPlacementRegistry.SpawnPlacementType ON_GROUND
public static final EntitySpawnPlacementRegistry.SpawnPlacementType IN_WATER
public static EntitySpawnPlacementRegistry.SpawnPlacementType[] values()
for (EntitySpawnPlacementRegistry.SpawnPlacementType c : EntitySpawnPlacementRegistry.SpawnPlacementType.values()) System.out.println(c);
public static EntitySpawnPlacementRegistry.SpawnPlacementType 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.SpawnPlacementType create(java.lang.String name, TriPredicate<IWorldReaderBase,BlockPos,EntityType<? extends EntityLiving>> predicate)
public boolean canSpawnAt(IWorldReaderBase world, BlockPos pos, EntityType<? extends EntityLiving> type)