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 SpawnPlacements.Type
-
Constructor Summary
ConstructorDescriptionMergedSpawnPredicate
(SpawnPlacements.SpawnPredicate<T> originalPredicate, SpawnPlacements.Type spawnType, Heightmap.Types heightmapType) -
Method Summary
Modifier and TypeMethodDescriptionbuild()
private void
merge
(SpawnPlacementRegisterEvent.Operation operation, SpawnPlacements.SpawnPredicate<T> predicate, SpawnPlacements.Type spawnType, Heightmap.Types heightmapType)
-
Field Details
-
originalPredicate
-
orPredicates
-
andPredicates
-
replacementPredicate
-
spawnType
-
heightmapType
-
-
Constructor Details
-
MergedSpawnPredicate
public MergedSpawnPredicate(SpawnPlacements.SpawnPredicate<T> originalPredicate, SpawnPlacements.Type spawnType, Heightmap.Types heightmapType)
-
-
Method Details
-
getSpawnType
-
getHeightmapType
-
merge
private void merge(SpawnPlacementRegisterEvent.Operation operation, SpawnPlacements.SpawnPredicate<T> predicate, @Nullable SpawnPlacements.Type spawnType, @Nullable Heightmap.Types heightmapType) -
build
-