Class EntityEquipmentMock

java.lang.Object
be.seeseemelk.mockbukkit.entity.EntityEquipmentMock
All Implemented Interfaces:
org.bukkit.inventory.EntityEquipment

public class EntityEquipmentMock extends Object implements org.bukkit.inventory.EntityEquipment
This mocks the EntityEquipment of a LivingEntityMock. Note that not every LivingEntity has EntityEquipment, so only implement this where necessary.
  • Constructor Details

    • EntityEquipmentMock

      public EntityEquipmentMock(@NotNull @NotNull LivingEntityMock holder)
  • Method Details

    • setItem

      public void setItem(@NotNull @NotNull org.bukkit.inventory.EquipmentSlot slot, @Nullable @Nullable org.bukkit.inventory.ItemStack item)
      Specified by:
      setItem in interface org.bukkit.inventory.EntityEquipment
    • 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
    • getItem

      @NotNull public @NotNull org.bukkit.inventory.ItemStack getItem(@NotNull @NotNull org.bukkit.inventory.EquipmentSlot slot)
      Specified by:
      getItem 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 item)
      Specified by:
      setItemInMainHand in interface org.bukkit.inventory.EntityEquipment
    • setItemInMainHand

      public void setItemInMainHand(org.bukkit.inventory.ItemStack item, 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 item)
      Specified by:
      setItemInOffHand in interface org.bukkit.inventory.EntityEquipment
    • setItemInOffHand

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

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

      @Deprecated public void setItemInHand(org.bukkit.inventory.ItemStack stack)
      Deprecated.
      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 helmet)
      Specified by:
      setHelmet in interface org.bukkit.inventory.EntityEquipment
    • setHelmet

      public void setHelmet(org.bukkit.inventory.ItemStack helmet, 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 chestplate)
      Specified by:
      setChestplate in interface org.bukkit.inventory.EntityEquipment
    • setChestplate

      public void setChestplate(org.bukkit.inventory.ItemStack chestplate, 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 leggings)
      Specified by:
      setLeggings in interface org.bukkit.inventory.EntityEquipment
    • setLeggings

      public void setLeggings(org.bukkit.inventory.ItemStack leggings, 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 boots)
      Specified by:
      setBoots in interface org.bukkit.inventory.EntityEquipment
    • setBoots

      public void setBoots(org.bukkit.inventory.ItemStack boots, 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(@NotNull @NotNull org.bukkit.inventory.ItemStack[] items)
      Specified by:
      setArmorContents in interface org.bukkit.inventory.EntityEquipment
    • clear

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

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

      @Deprecated public void setItemInHandDropChance(float chance)
      Deprecated.
      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
    • setDropChance

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

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