public static enum EntityLiving.SpawnPlacementType extends java.lang.Enum<EntityLiving.SpawnPlacementType>
Modifier and Type | Field and Description |
---|---|
private java.util.function.BiPredicate<IBlockAccess,BlockPos> |
spawnPredicate |
Modifier and Type | Method and Description |
---|---|
boolean |
canSpawnAt(World world,
BlockPos pos) |
static EntityLiving.SpawnPlacementType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EntityLiving.SpawnPlacementType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EntityLiving.SpawnPlacementType ON_GROUND
public static final EntityLiving.SpawnPlacementType IN_AIR
public static final EntityLiving.SpawnPlacementType IN_WATER
private final java.util.function.BiPredicate<IBlockAccess,BlockPos> spawnPredicate
public static EntityLiving.SpawnPlacementType[] values()
for (EntityLiving.SpawnPlacementType c : EntityLiving.SpawnPlacementType.values()) System.out.println(c);
public static EntityLiving.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 null