Uses of Enum Class
net.minecraft.world.entity.SpawnPlacements.Type
Package
Description
-
Uses of SpawnPlacements.Type in net.minecraft.world.entity
Modifier and TypeFieldDescription(package private) final SpawnPlacements.Type
SpawnPlacements.Data.placement
Modifier and TypeMethodDescriptionstatic SpawnPlacements.Type
SpawnPlacements.Type.create
(String name, TriPredicate<LevelReader, BlockPos, EntityType<? extends Mob>> predicate) static SpawnPlacements.Type
SpawnPlacements.getPlacementType
(EntityType<?> p_21753_) static SpawnPlacements.Type
Returns the enum constant of this class with the specified name.static SpawnPlacements.Type[]
SpawnPlacements.Type.values()
Returns an array containing the constants of this enum class, in the order they are declared.Modifier and TypeMethodDescriptionstatic <T extends Mob>
voidSpawnPlacements.register
(EntityType<T> p_21755_, SpawnPlacements.Type p_21756_, Heightmap.Types p_21757_, SpawnPlacements.SpawnPredicate<T> p_21758_) ModifierConstructorDescriptionData
(Heightmap.Types p_21771_, SpawnPlacements.Type p_21772_, SpawnPlacements.SpawnPredicate<?> p_21773_) -
Uses of SpawnPlacements.Type in net.minecraft.world.level
Modifier and TypeMethodDescriptionstatic boolean
NaturalSpawner.canSpawnAtBody
(SpawnPlacements.Type p_47052_, LevelReader p_47053_, BlockPos p_47054_, EntityType<?> p_47055_) static boolean
NaturalSpawner.isSpawnPositionOk
(SpawnPlacements.Type p_47052_, LevelReader p_47053_, BlockPos p_47054_, EntityType<?> p_47055_) -
Uses of SpawnPlacements.Type in net.minecraftforge.common.extensions
Modifier and TypeMethodDescriptiondefault boolean
IForgeBlock.isValidSpawn
(BlockState state, BlockGetter level, BlockPos pos, SpawnPlacements.Type type, EntityType<?> entityType) Determines if a specified mob type can spawn on this block, returning false will prevent any mob from spawning on the block.default boolean
IForgeBlockState.isValidSpawn
(LevelReader level, BlockPos pos, SpawnPlacements.Type type, EntityType<?> entityType) Determines if a specified mob type can spawn on this block, returning false will prevent any mob from spawning on the block.