类 SpawnPlacements
java.lang.Object
net.minecraft.world.entity.SpawnPlacements
-
嵌套类概要
嵌套类修饰符和类型类说明(专用程序包) static class
static interface
SpawnPlacements.SpawnPredicate<T extends Entity>
static enum
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static <T extends Entity>
booleancheckSpawnRules
(EntityType<T> pEntityType, ServerLevelAccessor pServerLevel, MobSpawnType pSpawnType, BlockPos pPos, RandomSource pRandom) static void
static Heightmap.Types
getHeightmapType
(EntityType<?> pEntityType) static SpawnPlacements.Type
getPlacementType
(EntityType<?> pEntityType) static <T extends Mob>
voidregister
(EntityType<T> pEntityType, SpawnPlacements.Type pDecoratorType, Heightmap.Types pHeightMapType, SpawnPlacements.SpawnPredicate<T> pDecoratorPredicate) 已过时。
-
字段详细资料
-
DATA_BY_TYPE
-
-
构造器详细资料
-
SpawnPlacements
public SpawnPlacements()
-
-
方法详细资料
-
register
@Deprecated public static <T extends Mob> void register(EntityType<T> pEntityType, SpawnPlacements.Type pDecoratorType, Heightmap.Types pHeightMapType, SpawnPlacements.SpawnPredicate<T> pDecoratorPredicate) 已过时。 -
getPlacementType
-
getHeightmapType
-
checkSpawnRules
public static <T extends Entity> boolean checkSpawnRules(EntityType<T> pEntityType, ServerLevelAccessor pServerLevel, MobSpawnType pSpawnType, BlockPos pPos, RandomSource pRandom) -
fireSpawnPlacementEvent
public static void fireSpawnPlacementEvent()
-