public enum SpawnLocationType extends java.lang.Enum<SpawnLocationType>
Enum Constant and Description |
---|
AIR |
AIR_PERSISTENT |
BOSS |
LAND |
LAND_NPC |
LAND_VILLAGER |
LEGENDARY |
TREE_TOP |
UNDERGROUND |
WATER |
Modifier and Type | Method and Description |
---|---|
static boolean |
contains(SpawnLocationType[] locations,
SpawnLocationType location)
Checks if an array of spawn locations contains a certain type of spawn
location.
|
static boolean |
containsOnly(SpawnLocationType[] locations,
SpawnLocationType location)
Checks if an array of spawn locations contains a certain type of spawn
location and no other locations.
|
static SpawnLocationType |
getFromIndex(int integer)
Gets a spawn location from its enum index.
|
java.lang.String |
getLocalizedName()
Gets the localized name of the spawn location.
|
static SpawnLocationType |
getSpawnLocation(java.lang.String location)
Gets the spawn location from a string
|
net.minecraft.util.math.BlockPos |
getSpawnLocation(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos xy) |
static SpawnLocationType[] |
getSpawnLocations(java.util.ArrayList<java.lang.String> list)
Gets the spawn locations from a list of string representations of spawn
locations.
|
static SpawnLocationType |
nextLocation(SpawnLocationType spawnLocation)
Gets the next spawn location (in enum index order) from an existing one.
|
static SpawnLocationType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SpawnLocationType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SpawnLocationType LAND
public static final SpawnLocationType LAND_NPC
public static final SpawnLocationType LAND_VILLAGER
public static final SpawnLocationType WATER
public static final SpawnLocationType UNDERGROUND
public static final SpawnLocationType AIR
public static final SpawnLocationType AIR_PERSISTENT
public static final SpawnLocationType LEGENDARY
public static final SpawnLocationType TREE_TOP
public static final SpawnLocationType BOSS
public static SpawnLocationType[] values()
for (SpawnLocationType c : SpawnLocationType.values()) System.out.println(c);
public static SpawnLocationType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic net.minecraft.util.math.BlockPos getSpawnLocation(net.minecraft.world.World world, net.minecraft.util.math.BlockPos xy)
public static SpawnLocationType[] getSpawnLocations(java.util.ArrayList<java.lang.String> list)
list
- A list of string representations of spawn locations.public static SpawnLocationType getSpawnLocation(java.lang.String location)
location
- The string representation of that spawn locationpublic static SpawnLocationType getFromIndex(int integer)
integer
- The index of the spawn location enum.public static SpawnLocationType nextLocation(SpawnLocationType spawnLocation)
spawnLocation
- The current spawn location.public static boolean contains(SpawnLocationType[] locations, SpawnLocationType location)
locations
- The array of spawn locations to search.location
- The spawn location to find.public static boolean containsOnly(SpawnLocationType[] locations, SpawnLocationType location)
locations
- The array of spawn locations to search.location
- The spawn location to find.public java.lang.String getLocalizedName()