public enum EquipSlot extends Enum<EquipSlot>
Enum Constant and Description |
---|
CHEST |
FEET |
HAND |
HEAD |
LEGS |
NONE |
OFFHAND |
Modifier and Type | Method and Description |
---|---|
void |
equip(AbstractEntity entity,
AbstractItemStack item) |
boolean |
matches(String slot) |
static EquipSlot |
of(String key) |
static EquipSlot |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EquipSlot[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EquipSlot HEAD
public static final EquipSlot CHEST
public static final EquipSlot LEGS
public static final EquipSlot FEET
public static final EquipSlot HAND
public static final EquipSlot OFFHAND
public static final EquipSlot NONE
public static EquipSlot[] values()
for (EquipSlot c : EquipSlot.values()) System.out.println(c);
public static EquipSlot valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean matches(String slot)
public void equip(AbstractEntity entity, AbstractItemStack item)
Copyright © 2020. All rights reserved.