类 SpawnPlacements
java.lang.Object
net.minecraft.world.entity.SpawnPlacements
-
嵌套类概要
嵌套类修饰符和类型类说明(专用程序包) static final record
static interface
SpawnPlacements.SpawnPredicate<T extends Entity>
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static <T extends Entity>
booleancheckSpawnRules
(EntityType<T> p_217075_, ServerLevelAccessor p_217076_, EntitySpawnReason p_361433_, BlockPos p_217078_, RandomSource p_217079_) static void
Neo: Purely for Neo usage to fire off the spawn registering events.static Heightmap.Types
getHeightmapType
(EntityType<?> p_21766_) static SpawnPlacementType
getPlacementType
(EntityType<?> p_21753_) static boolean
hasPlacement
(EntityType<?> type) static boolean
isSpawnPositionOk
(EntityType<?> p_321531_, LevelReader p_321599_, BlockPos p_321663_) private static <T extends Mob>
voidregister
(EntityType<T> p_21755_, SpawnPlacementType p_321847_, Heightmap.Types p_21757_, SpawnPlacements.SpawnPredicate<T> p_21758_) 已过时。
-
字段详细资料
-
DATA_BY_TYPE
-
-
构造器详细资料
-
SpawnPlacements
public SpawnPlacements()
-
-
方法详细资料
-
register
@Deprecated private static <T extends Mob> void register(EntityType<T> p_21755_, SpawnPlacementType p_321847_, Heightmap.Types p_21757_, SpawnPlacements.SpawnPredicate<T> p_21758_) 已过时。Neo: Modders should useRegisterSpawnPlacementsEvent
instead. -
getPlacementType
-
isSpawnPositionOk
public static boolean isSpawnPositionOk(EntityType<?> p_321531_, LevelReader p_321599_, BlockPos p_321663_) -
getHeightmapType
-
checkSpawnRules
public static <T extends Entity> boolean checkSpawnRules(EntityType<T> p_217075_, ServerLevelAccessor p_217076_, EntitySpawnReason p_361433_, BlockPos p_217078_, RandomSource p_217079_) -
hasPlacement
-
fireSpawnPlacementEvent
@Internal public static void fireSpawnPlacementEvent()Neo: Purely for Neo usage to fire off the spawn registering events.
-
RegisterSpawnPlacementsEvent
instead.