Uses of Enum Class
net.minecraft.entity.EntitySpawnPlacementRegistry.PlacementType
Package
Description
-
Uses of EntitySpawnPlacementRegistry.PlacementType in net.minecraft.entity
Modifier and TypeFieldDescriptionprivate final EntitySpawnPlacementRegistry.PlacementType
EntitySpawnPlacementRegistry.Entry.placement
Modifier and TypeMethodDescriptionEntitySpawnPlacementRegistry.PlacementType.create
(String name, TriPredicate<IWorldReader, BlockPos, EntityType<? extends MobEntity>> predicate) EntitySpawnPlacementRegistry.getPlacementType
(EntityType<?> p_209344_0_) Returns the enum constant of this class with the specified name.EntitySpawnPlacementRegistry.PlacementType.values()
Returns an array containing the constants of this enum class, in the order they are declared.Modifier and TypeMethodDescriptionstatic <T extends MobEntity>
voidEntitySpawnPlacementRegistry.register
(EntityType<T> p_209343_0_, EntitySpawnPlacementRegistry.PlacementType p_209343_1_, Heightmap.Type p_209343_2_, EntitySpawnPlacementRegistry.IPlacementPredicate<T> p_209343_3_) ModifierConstructorDescriptionEntry
(Heightmap.Type p_i51522_1_, EntitySpawnPlacementRegistry.PlacementType p_i51522_2_, EntitySpawnPlacementRegistry.IPlacementPredicate<?> p_i51522_3_) -
Uses of EntitySpawnPlacementRegistry.PlacementType in net.minecraft.world.spawner
Modifier and TypeMethodDescriptionstatic boolean
WorldEntitySpawner.canSpawnAtBody
(EntitySpawnPlacementRegistry.PlacementType p_209382_0_, IWorldReader p_209382_1_, BlockPos p_209382_2_, EntityType<?> p_209382_3_) static boolean
WorldEntitySpawner.isSpawnPositionOk
(EntitySpawnPlacementRegistry.PlacementType p_209382_0_, IWorldReader p_209382_1_, BlockPos p_209382_2_, EntityType<?> p_209382_3_) -
Uses of EntitySpawnPlacementRegistry.PlacementType in net.minecraftforge.common.extensions
Modifier and TypeMethodDescriptiondefault boolean
IForgeBlock.canCreatureSpawn
(BlockState state, IBlockReader world, BlockPos pos, EntitySpawnPlacementRegistry.PlacementType 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.canCreatureSpawn
(IWorldReader world, BlockPos pos, EntitySpawnPlacementRegistry.PlacementType 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.