spawnRestriction

FabricEntityTypeBuilder.Mob<TspawnRestriction(SpawnRestriction.Location location, Heightmap.Type heightmap, SpawnRestriction.SpawnPredicate<T> spawnPredicate)

Registers a spawn restriction for this entity.

This is used by mobs to determine whether Minecraft should spawn an entity within a certain context.

Return

this builder for chaining.

Sources

jvm source
Link copied to clipboard