spawn Restriction
FabricEntityTypeBuilder.Mob<T> spawnRestriction(SpawnRestriction.Location location, Heightmap.Type heightmap, SpawnRestriction.SpawnPredicate<T> spawnPredicate)
Content copied to clipboard
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