Class GlowEntityEquipment

java.lang.Object
net.glowstone.inventory.GlowEntityEquipment
All Implemented Interfaces:
org.bukkit.inventory.EntityEquipment

public class GlowEntityEquipment extends Object implements org.bukkit.inventory.EntityEquipment
  • Constructor Details

    • GlowEntityEquipment

      public GlowEntityEquipment(org.bukkit.entity.Entity holder)
  • Method Details

    • getItem

      @NotNull public @NotNull org.bukkit.inventory.ItemStack getItem(@NotNull @NotNull org.bukkit.inventory.EquipmentSlot slot)
      Returns the ItemStack found in the slot at the given EquipmentSlot.
      Specified by:
      getItem in interface org.bukkit.inventory.EntityEquipment
      Parameters:
      slot - The EquipmentSlot of the Slot's ItemStack to return
      Returns:
      The ItemStack in the slot
    • getDropChance

      public float getDropChance(@NotNull @NotNull org.bukkit.inventory.EquipmentSlot slot)
      Specified by:
      getDropChance in interface org.bukkit.inventory.EntityEquipment
    • setItem

      public void setItem(org.bukkit.inventory.EquipmentSlot slot, org.bukkit.inventory.ItemStack item)
      Stores the ItemStack at the given index of the inventory.
      Specified by:
      setItem in interface org.bukkit.inventory.EntityEquipment
      Parameters:
      slot - The EquipmentSlot where to put the ItemStack
      item - The ItemStack to set
    • setItem

      public void setItem(@NotNull @NotNull org.bukkit.inventory.EquipmentSlot slot, @Nullable @Nullable org.bukkit.inventory.ItemStack item, boolean silent)
      Specified by:
      setItem in interface org.bukkit.inventory.EntityEquipment
    • setDropChance

      public void setDropChance(@NotNull @NotNull org.bukkit.inventory.EquipmentSlot slot, float chance)
      Specified by:
      setDropChance in interface org.bukkit.inventory.EntityEquipment
    • getItemInMainHand

      @NotNull public @NotNull org.bukkit.inventory.ItemStack getItemInMainHand()
      Specified by:
      getItemInMainHand in interface org.bukkit.inventory.EntityEquipment
    • setItemInMainHand

      public void setItemInMainHand(org.bukkit.inventory.ItemStack itemStack)
      Specified by:
      setItemInMainHand in interface org.bukkit.inventory.EntityEquipment
    • setItemInMainHand

      public void setItemInMainHand(@Nullable @Nullable org.bukkit.inventory.ItemStack itemStack, boolean silent)
      Specified by:
      setItemInMainHand in interface org.bukkit.inventory.EntityEquipment
    • getItemInOffHand

      @NotNull public @NotNull org.bukkit.inventory.ItemStack getItemInOffHand()
      Specified by:
      getItemInOffHand in interface org.bukkit.inventory.EntityEquipment
    • setItemInOffHand

      public void setItemInOffHand(org.bukkit.inventory.ItemStack itemStack)
      Specified by:
      setItemInOffHand in interface org.bukkit.inventory.EntityEquipment
    • setItemInOffHand

      public void setItemInOffHand(@Nullable @Nullable org.bukkit.inventory.ItemStack itemStack, boolean silent)
      Specified by:
      setItemInOffHand in interface org.bukkit.inventory.EntityEquipment
    • getItemInHand

      @NotNull public @NotNull org.bukkit.inventory.ItemStack getItemInHand()
      Specified by:
      getItemInHand in interface org.bukkit.inventory.EntityEquipment
    • setItemInHand

      public void setItemInHand(org.bukkit.inventory.ItemStack itemStack)
      Specified by:
      setItemInHand in interface org.bukkit.inventory.EntityEquipment
    • getHelmet

      public org.bukkit.inventory.ItemStack getHelmet()
      Specified by:
      getHelmet in interface org.bukkit.inventory.EntityEquipment
    • setHelmet

      public void setHelmet(org.bukkit.inventory.ItemStack itemStack)
      Specified by:
      setHelmet in interface org.bukkit.inventory.EntityEquipment
    • setHelmet

      public void setHelmet(@Nullable @Nullable org.bukkit.inventory.ItemStack itemStack, boolean silent)
      Specified by:
      setHelmet in interface org.bukkit.inventory.EntityEquipment
    • getChestplate

      public org.bukkit.inventory.ItemStack getChestplate()
      Specified by:
      getChestplate in interface org.bukkit.inventory.EntityEquipment
    • setChestplate

      public void setChestplate(org.bukkit.inventory.ItemStack itemStack)
      Specified by:
      setChestplate in interface org.bukkit.inventory.EntityEquipment
    • setChestplate

      public void setChestplate(@Nullable @Nullable org.bukkit.inventory.ItemStack itemStack, boolean silent)
      Specified by:
      setChestplate in interface org.bukkit.inventory.EntityEquipment
    • getLeggings

      public org.bukkit.inventory.ItemStack getLeggings()
      Specified by:
      getLeggings in interface org.bukkit.inventory.EntityEquipment
    • setLeggings

      public void setLeggings(org.bukkit.inventory.ItemStack itemStack)
      Specified by:
      setLeggings in interface org.bukkit.inventory.EntityEquipment
    • setLeggings

      public void setLeggings(@Nullable @Nullable org.bukkit.inventory.ItemStack itemStack, boolean silent)
      Specified by:
      setLeggings in interface org.bukkit.inventory.EntityEquipment
    • getBoots

      public org.bukkit.inventory.ItemStack getBoots()
      Specified by:
      getBoots in interface org.bukkit.inventory.EntityEquipment
    • setBoots

      public void setBoots(org.bukkit.inventory.ItemStack itemStack)
      Specified by:
      setBoots in interface org.bukkit.inventory.EntityEquipment
    • setBoots

      public void setBoots(@Nullable @Nullable org.bukkit.inventory.ItemStack itemStack, boolean silent)
      Specified by:
      setBoots in interface org.bukkit.inventory.EntityEquipment
    • getArmorContents

      public org.bukkit.inventory.ItemStack[] getArmorContents()
      Specified by:
      getArmorContents in interface org.bukkit.inventory.EntityEquipment
    • setArmorContents

      public void setArmorContents(org.bukkit.inventory.ItemStack[] itemStacks)
      Specified by:
      setArmorContents in interface org.bukkit.inventory.EntityEquipment
    • clear

      public void clear()
      Specified by:
      clear in interface org.bukkit.inventory.EntityEquipment
    • getItemInHandDropChance

      public float getItemInHandDropChance()
      Specified by:
      getItemInHandDropChance in interface org.bukkit.inventory.EntityEquipment
    • setItemInHandDropChance

      public void setItemInHandDropChance(float chance)
      Specified by:
      setItemInHandDropChance in interface org.bukkit.inventory.EntityEquipment
    • getItemInMainHandDropChance

      public float getItemInMainHandDropChance()
      Specified by:
      getItemInMainHandDropChance in interface org.bukkit.inventory.EntityEquipment
    • setItemInMainHandDropChance

      public void setItemInMainHandDropChance(float chance)
      Specified by:
      setItemInMainHandDropChance in interface org.bukkit.inventory.EntityEquipment
    • getItemInOffHandDropChance

      public float getItemInOffHandDropChance()
      Specified by:
      getItemInOffHandDropChance in interface org.bukkit.inventory.EntityEquipment
    • setItemInOffHandDropChance

      public void setItemInOffHandDropChance(float chance)
      Specified by:
      setItemInOffHandDropChance in interface org.bukkit.inventory.EntityEquipment
    • getHelmetDropChance

      public float getHelmetDropChance()
      Specified by:
      getHelmetDropChance in interface org.bukkit.inventory.EntityEquipment
    • setHelmetDropChance

      public void setHelmetDropChance(float chance)
      Specified by:
      setHelmetDropChance in interface org.bukkit.inventory.EntityEquipment
    • getChestplateDropChance

      public float getChestplateDropChance()
      Specified by:
      getChestplateDropChance in interface org.bukkit.inventory.EntityEquipment
    • setChestplateDropChance

      public void setChestplateDropChance(float chance)
      Specified by:
      setChestplateDropChance in interface org.bukkit.inventory.EntityEquipment
    • getLeggingsDropChance

      public float getLeggingsDropChance()
      Specified by:
      getLeggingsDropChance in interface org.bukkit.inventory.EntityEquipment
    • setLeggingsDropChance

      public void setLeggingsDropChance(float chance)
      Specified by:
      setLeggingsDropChance in interface org.bukkit.inventory.EntityEquipment
    • getBootsDropChance

      public float getBootsDropChance()
      Specified by:
      getBootsDropChance in interface org.bukkit.inventory.EntityEquipment
    • setBootsDropChance

      public void setBootsDropChance(float chance)
      Specified by:
      setBootsDropChance in interface org.bukkit.inventory.EntityEquipment
    • getHolder

      public org.bukkit.entity.Entity getHolder()
      Specified by:
      getHolder in interface org.bukkit.inventory.EntityEquipment