Uses of Interface
net.minecraft.entity.SpawnRestriction.SpawnPredicate
-
Uses of SpawnRestriction.SpawnPredicate in net.minecraft.entity
Modifier and TypeFieldDescriptionprivate final SpawnRestriction.SpawnPredicate
<?> SpawnRestriction.Entry.predicate
The field for thepredicate
record component.Modifier and TypeMethodDescriptionSpawnRestriction.Entry.predicate()
Returns the value of thepredicate
record component.Modifier and TypeMethodDescriptionprivate static <T extends MobEntity>
voidSpawnRestriction.register
(EntityType<T> type, SpawnLocation location, Heightmap.Type heightmapType, SpawnRestriction.SpawnPredicate<T> predicate) ModifierConstructorDescription(package private)
Entry
(Heightmap.Type heightmapType, SpawnLocation location, SpawnRestriction.SpawnPredicate<?> predicate) Creates an instance of aEntry
record class.