Package net.glowstone.inventory
Class GlowInventorySlot
java.lang.Object
net.glowstone.inventory.GlowInventorySlot
-
Constructor Summary
ConstructorsConstructorDescriptionGlowInventorySlot(org.bukkit.event.inventory.InventoryType.SlotType type) GlowInventorySlot(org.bukkit.inventory.ItemStack item) GlowInventorySlot(org.bukkit.inventory.ItemStack item, org.bukkit.event.inventory.InventoryType.SlotType type) -
Method Summary
Modifier and TypeMethodDescriptionstatic GlowInventorySlot[]createArray(int len) Returns an array of new container-type slots.static List<GlowInventorySlot>createList(int len) org.bukkit.inventory.EquipmentSlot@NotNull org.bukkit.inventory.ItemStackgetItem()org.bukkit.event.inventory.InventoryType.SlotTypegetType()voidsetEquipmentSlot(org.bukkit.inventory.EquipmentSlot equipmentSlot) voidsetItem(org.bukkit.inventory.ItemStack item) voidsetType(org.bukkit.event.inventory.InventoryType.SlotType type)
-
Constructor Details
-
GlowInventorySlot
public GlowInventorySlot() -
GlowInventorySlot
public GlowInventorySlot(org.bukkit.event.inventory.InventoryType.SlotType type) -
GlowInventorySlot
public GlowInventorySlot(org.bukkit.inventory.ItemStack item) -
GlowInventorySlot
public GlowInventorySlot(org.bukkit.inventory.ItemStack item, org.bukkit.event.inventory.InventoryType.SlotType type)
-
-
Method Details
-
createArray
Returns an array of new container-type slots.- Parameters:
len- the length of the array- Returns:
- an array, each of whose elements is a new
InventoryType.SlotType.CONTAINERGlowInventorySlot
-
createList
-
getItem
@NotNull public @NotNull org.bukkit.inventory.ItemStack getItem() -
setItem
public void setItem(org.bukkit.inventory.ItemStack item) -
getType
public org.bukkit.event.inventory.InventoryType.SlotType getType() -
setType
public void setType(org.bukkit.event.inventory.InventoryType.SlotType type) -
getEquipmentSlot
public org.bukkit.inventory.EquipmentSlot getEquipmentSlot() -
setEquipmentSlot
public void setEquipmentSlot(org.bukkit.inventory.EquipmentSlot equipmentSlot)
-