Uses of Interface
net.minecraft.world.entity.SpawnPlacements.SpawnPredicate
-
Uses of SpawnPlacements.SpawnPredicate in net.minecraft.world.entity
Modifier and TypeFieldDescriptionprivate final SpawnPlacements.SpawnPredicate
<?> SpawnPlacements.Data.predicate
The field for thepredicate
record component.Modifier and TypeMethodDescriptionSpawnPlacements.Data.predicate()
Returns the value of thepredicate
record component.Modifier and TypeMethodDescriptionprivate static <T extends Mob>
voidSpawnPlacements.register
(EntityType<T> p_21755_, SpawnPlacementType p_321847_, Heightmap.Types p_21757_, SpawnPlacements.SpawnPredicate<T> p_21758_) ModifierConstructorDescription(package private)
Data
(Heightmap.Types heightMap, SpawnPlacementType placement, SpawnPlacements.SpawnPredicate<?> predicate) Creates an instance of aData
record class. -
Uses of SpawnPlacements.SpawnPredicate in net.neoforged.neoforge.event.entity
Modifier and TypeFieldDescriptionprivate final SpawnPlacements.SpawnPredicate
<T> SpawnPlacementRegisterEvent.MergedSpawnPredicate.originalPredicate
private SpawnPlacements.SpawnPredicate
<T> SpawnPlacementRegisterEvent.MergedSpawnPredicate.replacementPredicate
Modifier and TypeFieldDescriptionprivate final List
<SpawnPlacements.SpawnPredicate<T>> SpawnPlacementRegisterEvent.MergedSpawnPredicate.andPredicates
private final List
<SpawnPlacements.SpawnPredicate<T>> SpawnPlacementRegisterEvent.MergedSpawnPredicate.orPredicates
Modifier and TypeMethodDescriptionprivate void
SpawnPlacementRegisterEvent.MergedSpawnPredicate.merge
(SpawnPlacementRegisterEvent.Operation operation, SpawnPlacements.SpawnPredicate<T> predicate, @Nullable SpawnPlacementType spawnType, Heightmap.Types heightmapType) <T extends Entity>
voidSpawnPlacementRegisterEvent.register
(EntityType<T> entityType, @Nullable SpawnPlacementType placementType, Heightmap.Types heightmap, SpawnPlacements.SpawnPredicate<T> predicate, SpawnPlacementRegisterEvent.Operation operation) Register apredicate
for a givenentityType
andoperation
With the option of changing theplacementType
andheightmap
.<T extends Entity>
voidSpawnPlacementRegisterEvent.register
(EntityType<T> entityType, SpawnPlacements.SpawnPredicate<T> predicate) Register an optional spawn placementpredicate
for a givenentityType
<T extends Entity>
voidSpawnPlacementRegisterEvent.register
(EntityType<T> entityType, SpawnPlacements.SpawnPredicate<T> predicate, SpawnPlacementRegisterEvent.Operation operation) Register apredicate
for a givenentityType
with a givenoperation
for handlingModifierConstructorDescriptionMergedSpawnPredicate
(SpawnPlacements.SpawnPredicate<T> originalPredicate, SpawnPlacementType spawnType, Heightmap.Types heightmapType)