Class CustomDropItem
java.lang.Object
me.lokka30.levelledmobs.customdrops.CustomDropBase
me.lokka30.levelledmobs.customdrops.CustomDropItem
- All Implemented Interfaces:
Cloneable
This holds all the attributes set for a custom drop item
- Since:
- 2.5.0
-
Field Summary
Modifier and TypeFieldDescriptionint
boolean
boolean
float
boolean
@Nullable List<org.bukkit.inventory.ItemFlag>
boolean
boolean
Fields inherited from class me.lokka30.levelledmobs.customdrops.CustomDropBase
chance, groupId, isDefaultDrop, maxLevel, minLevel, permissions, playeerVariableMatches, priority, uid, useChunkKillMax
-
Constructor Summary
ConstructorDescriptionCustomDropItem
(@NotNull CustomDropsDefaults defaults) CustomDropItem
(@NotNull LevelledMobs levelledMobs) -
Method Summary
Modifier and TypeMethodDescriptionint
@NotNull String
int
int
boolean
org.bukkit.inventory.ItemStack
org.bukkit.Material
void
setDamage
(int damage) boolean
setDamageRangeFromString
(String numberOrNumberRange) void
setItemStack
(@NotNull org.bukkit.inventory.ItemStack itemStack) void
setMaterial
(org.bukkit.Material material) toString()
Methods inherited from class me.lokka30.levelledmobs.customdrops.CustomDropBase
getAmount, hasGroupId, setAmount
-
Field Details
-
customModelDataId
public int customModelDataId -
equippedSpawnChance
public float equippedSpawnChance -
noMultiplier
public boolean noMultiplier -
onlyDropIfEquipped
public boolean onlyDropIfEquipped -
equipOnHelmet
public boolean equipOnHelmet -
customName
-
mobHeadTexture
-
lore
-
itemFlags
-
itemFlagsStrings
-
equipOffhand
public boolean equipOffhand -
customPlayerHeadId
-
isExternalItem
public boolean isExternalItem -
externalPluginName
-
externalType
-
externalItemId
-
nbtData
-
externalAmount
-
externalExtras
-
enchantmentChances
-
-
Constructor Details
-
CustomDropItem
-
CustomDropItem
-
-
Method Details
-
cloneItem
- Overrides:
cloneItem
in classCustomDropBase
-
setDamageRangeFromString
-
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
-
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
-