Class CustomDropItem

java.lang.Object
me.lokka30.levelledmobs.customdrops.CustomDropBase
me.lokka30.levelledmobs.customdrops.CustomDropItem
All Implemented Interfaces:
Cloneable

public class CustomDropItem extends CustomDropBase
This holds all the attributes set for a custom drop item
Since:
2.5.0
  • Field Details

    • customModelDataId

      public int customModelDataId
    • equippedSpawnChance

      public float equippedSpawnChance
    • noMultiplier

      public boolean noMultiplier
    • onlyDropIfEquipped

      public boolean onlyDropIfEquipped
    • equipOnHelmet

      public boolean equipOnHelmet
    • customName

      public String customName
    • mobHeadTexture

      public String mobHeadTexture
    • lore

      public List<String> lore
    • itemFlags

      @Nullable public @Nullable List<org.bukkit.inventory.ItemFlag> itemFlags
    • itemFlagsStrings

      @Nullable public @Nullable List<String> itemFlagsStrings
    • equipOffhand

      public boolean equipOffhand
    • customPlayerHeadId

      public UUID customPlayerHeadId
    • isExternalItem

      public boolean isExternalItem
    • externalPluginName

      public String externalPluginName
    • externalType

      public String externalType
    • externalItemId

      public String externalItemId
    • nbtData

      public String nbtData
    • externalAmount

      public Double externalAmount
    • externalExtras

      public Map<String,Object> externalExtras
    • enchantmentChances

      public EnchantmentChances enchantmentChances
  • Constructor Details

    • CustomDropItem

      public CustomDropItem(@NotNull @NotNull LevelledMobs levelledMobs)
    • CustomDropItem

      public CustomDropItem(@NotNull @NotNull CustomDropsDefaults defaults)
  • Method Details

    • cloneItem

      public CustomDropItem cloneItem()
      Overrides:
      cloneItem in class CustomDropBase
    • setDamageRangeFromString

      public boolean setDamageRangeFromString(String numberOrNumberRange)
    • getDamage

      public int getDamage()
    • setDamage

      public void setDamage(int damage)
    • getDamageRangeMin

      public int getDamageRangeMin()
    • getDamageRangeMax

      public int getDamageRangeMax()
    • getHasDamageRange

      public boolean getHasDamageRange()
    • setMaterial

      public void setMaterial(org.bukkit.Material material)
    • getDamageAsString

      @NotNull public @NotNull String getDamageAsString()
    • getMaterial

      public org.bukkit.Material getMaterial()
    • getItemStack

      public org.bukkit.inventory.ItemStack getItemStack()
    • setItemStack

      public void setItemStack(@NotNull @NotNull org.bukkit.inventory.ItemStack itemStack)
    • toString

      public String toString()
      Overrides:
      toString in class Object