public enum BagSection extends java.lang.Enum<BagSection> implements ITranslatable
Enum Constant and Description |
---|
BATTLE_ITEMS |
HP |
POKEBALLS |
STATUS_RESTORE |
Modifier and Type | Method and Description |
---|---|
static BagSection |
getSection(int index)
Gets a section of the bag from its enum index.
|
java.lang.String |
getTranslationKey() |
static boolean |
hasBag(java.lang.String name)
Checks if there is a section of the bag with a certain name.
|
boolean |
isItem(net.minecraft.item.ItemStack itemStack) |
static BagSection |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BagSection[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
getLocalizedName, getTranslatedName
public static final BagSection POKEBALLS
public static final BagSection HP
public static final BagSection BATTLE_ITEMS
public static final BagSection STATUS_RESTORE
public static BagSection[] values()
for (BagSection c : BagSection.values()) System.out.println(c);
public static BagSection 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 getTranslationKey()
getTranslationKey
in interface ITranslatable
public boolean isItem(net.minecraft.item.ItemStack itemStack)
public static BagSection getSection(int index)
index
- The enum index of the section.public static boolean hasBag(java.lang.String name)
name
- The name to look for.