Package net.minecraftforge.event.entity
Class SpawnPlacementRegisterEvent.MergedSpawnPredicate<T extends Entity>
java.lang.Object
net.minecraftforge.event.entity.SpawnPlacementRegisterEvent.MergedSpawnPredicate<T>
- Enclosing class:
SpawnPlacementRegisterEvent
-
Field Summary
Modifier and TypeFieldDescriptionprivate final List
<SpawnPlacements.SpawnPredicate<T>> private Heightmap.Types
private final SpawnPlacements.SpawnPredicate
<T> private final List
<SpawnPlacements.SpawnPredicate<T>> private SpawnPlacements.SpawnPredicate
<T> private SpawnPlacementType
-
Constructor Summary
ConstructorDescriptionMergedSpawnPredicate
(SpawnPlacements.SpawnPredicate<T> originalPredicate, SpawnPlacementType spawnType, Heightmap.Types heightmapType) -
Method Summary
Modifier and TypeMethodDescriptionbuild()
private void
merge
(SpawnPlacementRegisterEvent.Operation operation, SpawnPlacements.SpawnPredicate<T> predicate, SpawnPlacementType spawnType, Heightmap.Types heightmapType)
-
Field Details
-
originalPredicate
-
orPredicates
-
andPredicates
-
replacementPredicate
-
spawnType
-
heightmapType
-
-
Constructor Details
-
MergedSpawnPredicate
public MergedSpawnPredicate(SpawnPlacements.SpawnPredicate<T> originalPredicate, SpawnPlacementType spawnType, Heightmap.Types heightmapType)
-
-
Method Details
-
getSpawnType
-
getHeightmapType
-
merge
private void merge(SpawnPlacementRegisterEvent.Operation operation, SpawnPlacements.SpawnPredicate<T> predicate, @Nullable SpawnPlacementType spawnType, @Nullable Heightmap.Types heightmapType) -
build
-