Enum Constant and Description |
---|
ARCADE
The Wauz Arcade mode.
|
MMORPG
The Wauz MMORPG mode.
|
SURVIVAL
The Wauz Survival mode.
|
UNKNOWN
If the Wauz mode is unknown.
|
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
name
The name of the Wauz mode.
|
Modifier and Type | Method and Description |
---|---|
static WauzMode |
getMode(org.bukkit.entity.Entity entity) |
static WauzMode |
getMode(java.lang.String worldName) |
static WauzMode |
getMode(org.bukkit.World world) |
static boolean |
inHub(org.bukkit.entity.Entity entity) |
static boolean |
inHub(org.bukkit.World world) |
static boolean |
inOneBlock(org.bukkit.entity.Entity entity) |
static boolean |
inOneBlock(org.bukkit.World world) |
static boolean |
isArcade(org.bukkit.entity.Entity entity) |
static boolean |
isArcade(java.lang.String worldName) |
static boolean |
isArcade(org.bukkit.World world) |
static boolean |
isInstance(java.lang.String worldName) |
static boolean |
isInstanceOfType(java.lang.String worldName,
java.lang.String worldType) |
static boolean |
isMMORPG(org.bukkit.entity.Entity entity) |
static boolean |
isMMORPG(java.lang.String worldName) |
static boolean |
isMMORPG(org.bukkit.World world) |
static boolean |
isSurvival(org.bukkit.entity.Entity entity) |
static boolean |
isSurvival(java.lang.String worldName) |
static boolean |
isSurvival(org.bukkit.World world) |
java.lang.String |
toString() |
static WauzMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static WauzMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WauzMode MMORPG
public static final WauzMode SURVIVAL
public static final WauzMode ARCADE
public static final WauzMode UNKNOWN
public static WauzMode[] values()
for (WauzMode c : WauzMode.values()) System.out.println(c);
public static WauzMode 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 java.lang.String toString()
toString
in class java.lang.Enum<WauzMode>
public static WauzMode getMode(org.bukkit.entity.Entity entity)
entity
- The entity for checking the mode.public static WauzMode getMode(org.bukkit.World world)
world
- The world for checking the mode.public static WauzMode getMode(java.lang.String worldName)
worldName
- The name of the world for checking the mode.public static boolean inHub(org.bukkit.entity.Entity entity)
entity
- The entity for checking the mode.public static boolean inHub(org.bukkit.World world)
world
- The world for checking the mode.public static boolean inOneBlock(org.bukkit.entity.Entity entity)
entity
- The entity for checking the mode.public static boolean inOneBlock(org.bukkit.World world)
world
- The world for checking the mode.public static boolean isMMORPG(org.bukkit.entity.Entity entity)
entity
- The entity for checking the mode.public static boolean isMMORPG(org.bukkit.World world)
world
- The world for checking the mode.public static boolean isMMORPG(java.lang.String worldName)
worldName
- The name of the world for checking the mode.public static boolean isSurvival(org.bukkit.entity.Entity entity)
entity
- The entity for checking the mode.public static boolean isSurvival(org.bukkit.World world)
world
- The world for checking the mode.public static boolean isSurvival(java.lang.String worldName)
worldName
- The name of the world for checking the mode.public static boolean isArcade(org.bukkit.entity.Entity entity)
entity
- The entity for checking the mode.public static boolean isArcade(org.bukkit.World world)
world
- The world for checking the mode.public static boolean isArcade(java.lang.String worldName)
worldName
- The name of the world for checking the mode.public static boolean isInstanceOfType(java.lang.String worldName, java.lang.String worldType)
worldName
- The name of the world for checking the mode.worldType
- The type to check for.public static boolean isInstance(java.lang.String worldName)
worldName
- The name of the world for checking the mode.