protected static enum GermSlotAPI.MinecraftSlotConsumer extends java.lang.Enum<GermSlotAPI.MinecraftSlotConsumer>
定义了各种原版槽位的设置方法
Enum Constant and Description |
---|
ARMOR_BOOTS |
ARMOR_CHESTPLATE |
ARMOR_HELMET |
ARMOR_LEGGINGS |
MAIN_HAND |
OFF_HAND |
Modifier and Type | Method and Description |
---|---|
com.germ.germplugin.api.GermSlotAPI.MCSlotConsumer |
getMcSlotConsumer()
获取槽位消费者
|
java.lang.String |
getType()
获取槽位类型
|
static void |
setMinecraftSlot(org.bukkit.entity.Player player,
java.lang.String slotIdentity,
org.bukkit.inventory.ItemStack itemStack)
设置原版槽位物品
|
static GermSlotAPI.MinecraftSlotConsumer |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static GermSlotAPI.MinecraftSlotConsumer[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GermSlotAPI.MinecraftSlotConsumer MAIN_HAND
public static final GermSlotAPI.MinecraftSlotConsumer OFF_HAND
public static final GermSlotAPI.MinecraftSlotConsumer ARMOR_HELMET
public static final GermSlotAPI.MinecraftSlotConsumer ARMOR_CHESTPLATE
public static final GermSlotAPI.MinecraftSlotConsumer ARMOR_LEGGINGS
public static final GermSlotAPI.MinecraftSlotConsumer ARMOR_BOOTS
public static GermSlotAPI.MinecraftSlotConsumer[] values()
for (GermSlotAPI.MinecraftSlotConsumer c : GermSlotAPI.MinecraftSlotConsumer.values()) System.out.println(c);
public static GermSlotAPI.MinecraftSlotConsumer 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 getType()
public com.germ.germplugin.api.GermSlotAPI.MCSlotConsumer getMcSlotConsumer()
public static void setMinecraftSlot(org.bukkit.entity.Player player, java.lang.String slotIdentity, org.bukkit.inventory.ItemStack itemStack)
player
- 目标玩家slotIdentity
- 槽位标识符itemStack
- 要设置的物品