Uses of Interface
net.minecraft.entity.SpawnLocation
-
Uses of SpawnLocation in net.minecraft.entity
Modifier and TypeFieldDescriptionstatic final SpawnLocation
SpawnLocationTypes.IN_LAVA
static final SpawnLocation
SpawnLocationTypes.IN_WATER
private final SpawnLocation
SpawnRestriction.Entry.location
The field for thelocation
record component.static final SpawnLocation
SpawnLocationTypes.ON_GROUND
static final SpawnLocation
SpawnLocationTypes.UNRESTRICTED
Modifier and TypeMethodDescriptionstatic SpawnLocation
SpawnRestriction.getLocation
(EntityType<?> type) SpawnRestriction.Entry.location()
Returns the value of thelocation
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.