Package noppes.npcs.api.item
Interface IItemCustomizable
-
- All Superinterfaces:
IItemStack
- All Known Subinterfaces:
IItemCustom,IItemLinked
public interface IItemCustomizable extends IItemStack
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetArmorType()Gets the armor type for the scripted item.java.lang.IntegergetColor()Gets the color of the scripted item.intgetDigSpeed()Gets the dig speed for the scripted item.java.lang.IntegergetDurabilityColor()Gets the color of the durability bar for the scripted item.java.lang.BooleangetDurabilityShow()Checks if the durability bar should be shown for the scripted item.doublegetDurabilityValue()Gets the current durability value for the scripted item.intgetEnchantability()Gets the enchantability for the scripted item.intgetItemUseAction()Gets the item use action for the scripted item.intgetMaxItemUseDuration()Gets the maximum item use duration for the scripted item.intgetMaxStackSize()java.lang.FloatgetRotationX()Gets the X-axis rotation for the scripted item.java.lang.FloatgetRotationXRate()Gets the X-axis rotation rate for the scripted item.java.lang.FloatgetRotationY()Gets the Y-axis rotation for the scripted item.java.lang.FloatgetRotationYRate()Gets the Y-axis rotation rate for the scripted item.java.lang.FloatgetRotationZ()Gets the Z-axis rotation for the scripted item.java.lang.FloatgetRotationZRate()Gets the Z-axis rotation rate for the scripted item.java.lang.FloatgetScaleX()Gets the X-axis scale for the scripted item.java.lang.FloatgetScaleY()Gets the Y-axis scale for the scripted item.java.lang.FloatgetScaleZ()Gets the Z-axis scale for the scripted item.java.lang.ObjectgetScriptHandler()java.lang.StringgetTexture()Gets the texture path for the scripted item.java.lang.FloatgetTranslateX()Gets the X-axis translation for the scripted item.java.lang.FloatgetTranslateY()Gets the Y-axis translation for the scripted item.java.lang.FloatgetTranslateZ()Gets the Z-axis translation for the scripted item.booleanisNormalItem()Checks if the scripted item is a normal item.booleanisTool()Checks if the scripted item is a tool.voidsetColor(java.lang.Integer color)Sets the color of the scripted item.voidsetDurabilityColor(java.lang.Integer durabilityColor)Sets the color of the durability bar for the scripted item.voidsetDurabilityShow(java.lang.Boolean durabilityShow)Sets whether the durability bar should be shown for the scripted item.voidsetRotation(java.lang.Float rotationX, java.lang.Float rotationY, java.lang.Float rotationZ)Sets the rotation values for the scripted item.voidsetRotationRate(java.lang.Float rotationXRate, java.lang.Float rotationYRate, java.lang.Float rotationZRate)Sets the rotation rate values for the scripted item.voidsetScale(java.lang.Float scaleX, java.lang.Float scaleY, java.lang.Float scaleZ)Sets the scale values for the scripted item.voidsetTexture(java.lang.String texture)Sets the texture path for the scripted item.voidsetTranslate(java.lang.Float translateX, java.lang.Float translateY, java.lang.Float translateZ)Sets the translation values for the scripted item.-
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
-
getScriptHandler
java.lang.Object getScriptHandler()
-
getMaxStackSize
int getMaxStackSize()
- Specified by:
getMaxStackSizein interfaceIItemStack- Returns:
- Returns the maximum stack size for this item.
-
getArmorType
int getArmorType()
Gets the armor type for the scripted item.- Returns:
- The armor type
-
isTool
boolean isTool()
Checks if the scripted item is a tool. Allows for enchanting- Returns:
- True if the item is a tool, false otherwise
-
isNormalItem
boolean isNormalItem()
Checks if the scripted item is a normal item.- Returns:
- True if the item is a normal item, false otherwise
-
getDigSpeed
int getDigSpeed()
Gets the dig speed for the scripted item.- Returns:
- The dig speed
-
getDurabilityValue
double getDurabilityValue()
Gets the current durability value for the scripted item.- Returns:
- The durability value
-
getMaxItemUseDuration
int getMaxItemUseDuration()
Gets the maximum item use duration for the scripted item.- Returns:
- The maximum item use duration
-
getItemUseAction
int getItemUseAction()
Gets the item use action for the scripted item.- Returns:
- The item use action
-
getEnchantability
int getEnchantability()
Gets the enchantability for the scripted item.- Returns:
- The enchantability
-
getTexture
java.lang.String getTexture()
Gets the texture path for the scripted item.- Returns:
- The texture path
-
setTexture
void setTexture(java.lang.String texture)
Sets the texture path for the scripted item. Can be a URL- Parameters:
texture- The texture path
-
getDurabilityShow
java.lang.Boolean getDurabilityShow()
Checks if the durability bar should be shown for the scripted item.- Returns:
- True if the durability bar should be shown, false otherwise
-
setDurabilityShow
void setDurabilityShow(java.lang.Boolean durabilityShow)
Sets whether the durability bar should be shown for the scripted item.- Parameters:
durabilityShow- True if the durability bar should be shown, false otherwise
-
getDurabilityColor
java.lang.Integer getDurabilityColor()
Gets the color of the durability bar for the scripted item.- Returns:
- The durability bar color
-
setDurabilityColor
void setDurabilityColor(java.lang.Integer durabilityColor)
Sets the color of the durability bar for the scripted item.- Parameters:
durabilityColor- The durability bar color
-
getColor
java.lang.Integer getColor()
Gets the color of the scripted item.- Returns:
- The item color
-
setColor
void setColor(java.lang.Integer color)
Sets the color of the scripted item.- Parameters:
color- The item color
-
setRotation
void setRotation(java.lang.Float rotationX, java.lang.Float rotationY, java.lang.Float rotationZ)Sets the rotation values for the scripted item.- Parameters:
rotationX- The X-axis rotationrotationY- The Y-axis rotationrotationZ- The Z-axis rotation
-
setRotationRate
void setRotationRate(java.lang.Float rotationXRate, java.lang.Float rotationYRate, java.lang.Float rotationZRate)Sets the rotation rate values for the scripted item. Spinning Speed- Parameters:
rotationXRate- The X-axis rotation raterotationYRate- The Y-axis rotation raterotationZRate- The Z-axis rotation rate
-
setScale
void setScale(java.lang.Float scaleX, java.lang.Float scaleY, java.lang.Float scaleZ)Sets the scale values for the scripted item.- Parameters:
scaleX- The X-axis scalescaleY- The Y-axis scalescaleZ- The Z-axis scale
-
setTranslate
void setTranslate(java.lang.Float translateX, java.lang.Float translateY, java.lang.Float translateZ)Sets the translation values for the scripted item.- Parameters:
translateX- The X-axis translationtranslateY- The Y-axis translationtranslateZ- The Z-axis translation
-
getRotationX
java.lang.Float getRotationX()
Gets the X-axis rotation for the scripted item.- Returns:
- The X-axis rotation
-
getRotationY
java.lang.Float getRotationY()
Gets the Y-axis rotation for the scripted item.- Returns:
- The Y-axis rotation
-
getRotationZ
java.lang.Float getRotationZ()
Gets the Z-axis rotation for the scripted item.- Returns:
- The Z-axis rotation
-
getRotationXRate
java.lang.Float getRotationXRate()
Gets the X-axis rotation rate for the scripted item.- Returns:
- The X-axis rotation rate
-
getRotationYRate
java.lang.Float getRotationYRate()
Gets the Y-axis rotation rate for the scripted item.- Returns:
- The Y-axis rotation rate
-
getRotationZRate
java.lang.Float getRotationZRate()
Gets the Z-axis rotation rate for the scripted item.- Returns:
- The Z-axis rotation rate
-
getScaleX
java.lang.Float getScaleX()
Gets the X-axis scale for the scripted item.- Returns:
- The X-axis scale
-
getScaleY
java.lang.Float getScaleY()
Gets the Y-axis scale for the scripted item.- Returns:
- The Y-axis scale
-
getScaleZ
java.lang.Float getScaleZ()
Gets the Z-axis scale for the scripted item.- Returns:
- The Z-axis scale
-
getTranslateX
java.lang.Float getTranslateX()
Gets the X-axis translation for the scripted item.- Returns:
- The X-axis translation
-
getTranslateY
java.lang.Float getTranslateY()
Gets the Y-axis translation for the scripted item.- Returns:
- The Y-axis translation
-
getTranslateZ
java.lang.Float getTranslateZ()
Gets the Z-axis translation for the scripted item.- Returns:
- The Z-axis translation
-
-