public static enum EntitySpawnPlacementRegistry.PlacementType extends java.lang.Enum<EntitySpawnPlacementRegistry.PlacementType> implements IExtensibleEnum
列挙型定数と説明 |
---|
IN_WATER |
NO_RESTRICTIONS |
ON_GROUND |
修飾子とタイプ | メソッドと説明 |
---|---|
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)
指定した名前を持つこの型の列挙型定数を返します。
|
static EntitySpawnPlacementRegistry.PlacementType[] |
values()
この列挙型の定数を含む配列を宣言されている順序で返します。
|
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
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
- 返される列挙型定数の名前。java.lang.IllegalArgumentException
- この列挙型に、指定した名前の定数がない場合java.lang.NullPointerException
- 引数がnullの場合public static EntitySpawnPlacementRegistry.PlacementType create(java.lang.String name, TriPredicate<IWorldReader,BlockPos,EntityType<? extends MobEntity>> predicate)
public boolean canSpawnAt(IWorldReader world, BlockPos pos, EntityType<?> type)