Package net.minecraft.world.entity
Class SpawnPlacements
java.lang.Object
net.minecraft.world.entity.SpawnPlacements
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static class
static interface
SpawnPlacements.SpawnPredicate<T extends Entity>
static enum
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends Entity>
booleancheckSpawnRules
(EntityType<T> p_21760_, ServerLevelAccessor p_21761_, MobSpawnType p_21762_, BlockPos p_21763_, Random p_21764_) static Heightmap.Types
getHeightmapType
(EntityType<?> p_21766_) static SpawnPlacements.Type
getPlacementType
(EntityType<?> p_21753_) static <T extends Mob>
voidregister
(EntityType<T> p_21755_, SpawnPlacements.Type p_21756_, Heightmap.Types p_21757_, SpawnPlacements.SpawnPredicate<T> p_21758_)
-
Field Details
-
DATA_BY_TYPE
-
-
Constructor Details
-
SpawnPlacements
public SpawnPlacements()
-
-
Method Details
-
register
public static <T extends Mob> void register(EntityType<T> p_21755_, SpawnPlacements.Type p_21756_, Heightmap.Types p_21757_, SpawnPlacements.SpawnPredicate<T> p_21758_) -
getPlacementType
-
getHeightmapType
-
checkSpawnRules
public static <T extends Entity> boolean checkSpawnRules(EntityType<T> p_21760_, ServerLevelAccessor p_21761_, MobSpawnType p_21762_, BlockPos p_21763_, Random p_21764_)
-