Package noppes.npcs.api.item
Interface IItemCustom
-
- All Superinterfaces:
IItemCustomizable
,IItemStack
public interface IItemCustom extends IItemCustomizable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
getEnabled()
void
setArmorType(int armorType)
Sets the armor type for the scripted item.void
setDigSpeed(int digSpeed)
Sets the dig speed for the scripted item.void
setDurabilityValue(float durabilityValue)
Sets the current durability value for the scripted item.void
setEnabled(boolean enable)
void
setEnchantability(int enchantability)
Sets the enchantability for the scripted item.void
setIsNormalItem(boolean normalItem)
Sets whether the scripted item is a normal item.void
setIsTool(boolean isTool)
Sets whether the scripted item is a tool.void
setItemUseAction(int action)
Sets the item use action for the scripted item.void
setMaxItemUseDuration(int duration)
Sets the maximum item use duration for the scripted item.void
setMaxStackSize(int maxStackSize)
Sets the maximum stack size for the scripted item.-
Methods inherited from interface noppes.npcs.api.item.IItemCustomizable
getArmorType, getColor, getDigSpeed, getDurabilityColor, getDurabilityShow, getDurabilityValue, getEnchantability, getItemUseAction, getMaxItemUseDuration, getMaxStackSize, getRotationX, getRotationXRate, getRotationY, getRotationYRate, getRotationZ, getRotationZRate, getScaleX, getScaleY, getScaleZ, getScriptHandler, getTexture, getTranslateX, getTranslateY, getTranslateZ, isNormalItem, isTool, setColor, setDurabilityColor, setDurabilityShow, setRotation, setRotationRate, setScale, setTexture, setTranslate
-
Methods inherited from interface noppes.npcs.api.item.IItemStack
addEnchant, compare, compare, copy, getAttribute, getBookAuthor, getBookText, getBookTitle, getCustomAttribute, getCustomAttributeKeys, getDisplayName, getItemDamage, getItemName, getItemNbt, getLore, getMagicAttribute, getMagicAttributeKeys, getMaxItemDamage, getMCItemStack, getMCNbt, getName, getNbt, getRequirement, getRequirementKeys, getStackSize, getTag, hasAttribute, hasCustomAttribute, hasCustomName, hasEnchant, hasLore, hasMagicAttribute, hasRequirement, hasTag, isBlock, isEnchanted, isWrittenBook, itemHash, removeCustomAttribute, removeMagicAttribute, removeRequirement, removeTags, setAttribute, setCustomAttribute, setCustomName, setItemDamage, setLore, setMagicAttribute, setMCNbt, setRequirement, setStackSize, setTag
-
-
-
-
Method Detail
-
getEnabled
boolean getEnabled()
- Returns:
- true if scripted item script is enabled
-
setEnabled
void setEnabled(boolean enable)
- Parameters:
enable
- Enable or Disable scripted item script
-
setArmorType
void setArmorType(int armorType)
Sets the armor type for the scripted item.- Parameters:
armorType
- The armor type
-
setIsTool
void setIsTool(boolean isTool)
Sets whether the scripted item is a tool.- Parameters:
isTool
- True if the item is a tool, false otherwise
-
setIsNormalItem
void setIsNormalItem(boolean normalItem)
Sets whether the scripted item is a normal item. Will disable all forms of Rotation, Translation, Scale Rendering in hand and on ground- Parameters:
normalItem
- True if the item is a normal item, false otherwise
-
setDigSpeed
void setDigSpeed(int digSpeed)
Sets the dig speed for the scripted item.- Parameters:
digSpeed
- The dig speed
-
setMaxStackSize
void setMaxStackSize(int maxStackSize)
Sets the maximum stack size for the scripted item.- Parameters:
maxStackSize
- The maximum stack size
-
setDurabilityValue
void setDurabilityValue(float durabilityValue)
Sets the current durability value for the scripted item.- Parameters:
durabilityValue
- The durability value
-
setMaxItemUseDuration
void setMaxItemUseDuration(int duration)
Sets the maximum item use duration for the scripted item.- Parameters:
duration
- The maximum item use duration
-
setItemUseAction
void setItemUseAction(int action)
Sets the item use action for the scripted item.- Parameters:
action
- The item use action
-
setEnchantability
void setEnchantability(int enchantability)
Sets the enchantability for the scripted item.- Parameters:
enchantability
- The enchantability
-
-