Files
2024-03-27 15:12:29 -04:00

1170 lines
41 KiB
HTML

<!DOCTYPE HTML>
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (11.0.20) on Wed Mar 27 15:11:31 EDT 2024 -->
<title>IItemCustom</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2024-03-27">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../jquery/jquery-ui.min.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../jquery-ui.overrides.css" title="Style">
<script type="text/javascript" src="../../../../script.js"></script>
<script type="text/javascript" src="../../../../jquery/jszip/dist/jszip.min.js"></script>
<script type="text/javascript" src="../../../../jquery/jszip-utils/dist/jszip-utils.min.js"></script>
<!--[if IE]>
<script type="text/javascript" src="../../../../jquery/jszip-utils/dist/jszip-utils-ie.min.js"></script>
<![endif]-->
<script type="text/javascript" src="../../../../jquery/jquery-3.6.1.min.js"></script>
<script type="text/javascript" src="../../../../jquery/jquery-ui.min.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="IItemCustom";
}
}
catch(err) {
}
//-->
var data = {"i0":6,"i1":6,"i2":6,"i3":6,"i4":6,"i5":6,"i6":6,"i7":6,"i8":6,"i9":6,"i10":6,"i11":6,"i12":6,"i13":6,"i14":6,"i15":6,"i16":6,"i17":6,"i18":6,"i19":6,"i20":6,"i21":6,"i22":6,"i23":6,"i24":6,"i25":6,"i26":6,"i27":6,"i28":6,"i29":6,"i30":6,"i31":6,"i32":6,"i33":6,"i34":6,"i35":6,"i36":6,"i37":6,"i38":6,"i39":6,"i40":6,"i41":6,"i42":6};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
var pathtoroot = "../../../../";
var useModuleDirectories = true;
loadScripts(document, 'script');</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<header role="banner">
<nav role="navigation">
<div class="fixedNav">
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a id="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../index.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-files/index-1.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../allclasses.html">All&nbsp;Classes</a></li>
</ul>
<ul class="navListSearch">
<li><label for="search">SEARCH:</label>
<input type="text" id="search" value="search" disabled="disabled">
<input type="reset" id="reset" value="reset" disabled="disabled">
</li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a id="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
</div>
<div class="navPadding">&nbsp;</div>
<script type="text/javascript"><!--
$('.navPadding').css('padding-top', $('.fixedNav').css("height"));
//-->
</script>
</nav>
</header>
<!-- ======== START OF CLASS DATA ======== -->
<main role="main">
<div class="header">
<div class="subTitle"><span class="packageLabelInType">Package</span>&nbsp;<a href="package-summary.html">noppes.npcs.api.item</a></div>
<h2 title="Interface IItemCustom" class="title">Interface IItemCustom</h2>
</div>
<div class="contentContainer">
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Superinterfaces:</dt>
<dd><code><a href="IItemStack.html" title="interface in noppes.npcs.api.item">IItemStack</a></code></dd>
</dl>
<hr>
<pre>public interface <span class="typeNameLabel">IItemCustom</span>
extends <a href="IItemStack.html" title="interface in noppes.npcs.api.item">IItemStack</a></pre>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ========== METHOD SUMMARY =========== -->
<section>
<ul class="blockList">
<li class="blockList"><a id="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t3" class="tableTab"><span><a href="javascript:show(4);">Abstract Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colSecond" scope="col">Method</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getArmorType()">getArmorType</a></span>()</code></th>
<td class="colLast">
<div class="block">Gets the armor type for the scripted item.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getColor()">getColor</a></span>()</code></th>
<td class="colLast">
<div class="block">Gets the color of the scripted item.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getDigSpeed()">getDigSpeed</a></span>()</code></th>
<td class="colLast">
<div class="block">Gets the dig speed for the scripted item.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getDurabilityColor()">getDurabilityColor</a></span>()</code></th>
<td class="colLast">
<div class="block">Gets the color of the durability bar for the scripted item.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getDurabilityShow()">getDurabilityShow</a></span>()</code></th>
<td class="colLast">
<div class="block">Checks if the durability bar should be shown for the scripted item.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>double</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getDurabilityValue()">getDurabilityValue</a></span>()</code></th>
<td class="colLast">
<div class="block">Gets the current durability value for the scripted item.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getEnabled()">getEnabled</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getEnchantability()">getEnchantability</a></span>()</code></th>
<td class="colLast">
<div class="block">Gets the enchantability for the scripted item.</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getItemUseAction()">getItemUseAction</a></span>()</code></th>
<td class="colLast">
<div class="block">Gets the item use action for the scripted item.</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getMaxItemUseDuration()">getMaxItemUseDuration</a></span>()</code></th>
<td class="colLast">
<div class="block">Gets the maximum item use duration for the scripted item.</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code>float</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getRotationX()">getRotationX</a></span>()</code></th>
<td class="colLast">
<div class="block">Gets the X-axis rotation for the scripted item.</div>
</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code>float</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getRotationXRate()">getRotationXRate</a></span>()</code></th>
<td class="colLast">
<div class="block">Gets the X-axis rotation rate for the scripted item.</div>
</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code>float</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getRotationY()">getRotationY</a></span>()</code></th>
<td class="colLast">
<div class="block">Gets the Y-axis rotation for the scripted item.</div>
</td>
</tr>
<tr id="i13" class="rowColor">
<td class="colFirst"><code>float</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getRotationYRate()">getRotationYRate</a></span>()</code></th>
<td class="colLast">
<div class="block">Gets the Y-axis rotation rate for the scripted item.</div>
</td>
</tr>
<tr id="i14" class="altColor">
<td class="colFirst"><code>float</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getRotationZ()">getRotationZ</a></span>()</code></th>
<td class="colLast">
<div class="block">Gets the Z-axis rotation for the scripted item.</div>
</td>
</tr>
<tr id="i15" class="rowColor">
<td class="colFirst"><code>float</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getRotationZRate()">getRotationZRate</a></span>()</code></th>
<td class="colLast">
<div class="block">Gets the Z-axis rotation rate for the scripted item.</div>
</td>
</tr>
<tr id="i16" class="altColor">
<td class="colFirst"><code>float</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getScaleX()">getScaleX</a></span>()</code></th>
<td class="colLast">
<div class="block">Gets the X-axis scale for the scripted item.</div>
</td>
</tr>
<tr id="i17" class="rowColor">
<td class="colFirst"><code>float</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getScaleY()">getScaleY</a></span>()</code></th>
<td class="colLast">
<div class="block">Gets the Y-axis scale for the scripted item.</div>
</td>
</tr>
<tr id="i18" class="altColor">
<td class="colFirst"><code>float</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getScaleZ()">getScaleZ</a></span>()</code></th>
<td class="colLast">
<div class="block">Gets the Z-axis scale for the scripted item.</div>
</td>
</tr>
<tr id="i19" class="rowColor">
<td class="colFirst"><code>java.lang.String</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getTexture()">getTexture</a></span>()</code></th>
<td class="colLast">
<div class="block">Gets the texture path for the scripted item.</div>
</td>
</tr>
<tr id="i20" class="altColor">
<td class="colFirst"><code>float</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getTranslateX()">getTranslateX</a></span>()</code></th>
<td class="colLast">
<div class="block">Gets the X-axis translation for the scripted item.</div>
</td>
</tr>
<tr id="i21" class="rowColor">
<td class="colFirst"><code>float</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getTranslateY()">getTranslateY</a></span>()</code></th>
<td class="colLast">
<div class="block">Gets the Y-axis translation for the scripted item.</div>
</td>
</tr>
<tr id="i22" class="altColor">
<td class="colFirst"><code>float</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getTranslateZ()">getTranslateZ</a></span>()</code></th>
<td class="colLast">
<div class="block">Gets the Z-axis translation for the scripted item.</div>
</td>
</tr>
<tr id="i23" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isNormalItem()">isNormalItem</a></span>()</code></th>
<td class="colLast">
<div class="block">Checks if the scripted item is a normal item.</div>
</td>
</tr>
<tr id="i24" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isTool()">isTool</a></span>()</code></th>
<td class="colLast">
<div class="block">Checks if the scripted item is a tool.</div>
</td>
</tr>
<tr id="i25" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setArmorType(int)">setArmorType</a></span>&#8203;(int&nbsp;armorType)</code></th>
<td class="colLast">
<div class="block">Sets the armor type for the scripted item.</div>
</td>
</tr>
<tr id="i26" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setColor(int)">setColor</a></span>&#8203;(int&nbsp;color)</code></th>
<td class="colLast">
<div class="block">Sets the color of the scripted item.</div>
</td>
</tr>
<tr id="i27" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setDigSpeed(int)">setDigSpeed</a></span>&#8203;(int&nbsp;digSpeed)</code></th>
<td class="colLast">
<div class="block">Sets the dig speed for the scripted item.</div>
</td>
</tr>
<tr id="i28" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setDurabilityColor(int)">setDurabilityColor</a></span>&#8203;(int&nbsp;durabilityColor)</code></th>
<td class="colLast">
<div class="block">Sets the color of the durability bar for the scripted item.</div>
</td>
</tr>
<tr id="i29" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setDurabilityShow(boolean)">setDurabilityShow</a></span>&#8203;(boolean&nbsp;durabilityShow)</code></th>
<td class="colLast">
<div class="block">Sets whether the durability bar should be shown for the scripted item.</div>
</td>
</tr>
<tr id="i30" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setDurabilityValue(float)">setDurabilityValue</a></span>&#8203;(float&nbsp;durabilityValue)</code></th>
<td class="colLast">
<div class="block">Sets the current durability value for the scripted item.</div>
</td>
</tr>
<tr id="i31" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setEnabled(boolean)">setEnabled</a></span>&#8203;(boolean&nbsp;enable)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i32" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setEnchantability(int)">setEnchantability</a></span>&#8203;(int&nbsp;enchantability)</code></th>
<td class="colLast">
<div class="block">Sets the enchantability for the scripted item.</div>
</td>
</tr>
<tr id="i33" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setIsNormalItem(boolean)">setIsNormalItem</a></span>&#8203;(boolean&nbsp;normalItem)</code></th>
<td class="colLast">
<div class="block">Sets whether the scripted item is a normal item.</div>
</td>
</tr>
<tr id="i34" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setIsTool(boolean)">setIsTool</a></span>&#8203;(boolean&nbsp;isTool)</code></th>
<td class="colLast">
<div class="block">Sets whether the scripted item is a tool.</div>
</td>
</tr>
<tr id="i35" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setItemUseAction(int)">setItemUseAction</a></span>&#8203;(int&nbsp;action)</code></th>
<td class="colLast">
<div class="block">Sets the item use action for the scripted item.</div>
</td>
</tr>
<tr id="i36" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setMaxItemUseDuration(int)">setMaxItemUseDuration</a></span>&#8203;(int&nbsp;duration)</code></th>
<td class="colLast">
<div class="block">Sets the maximum item use duration for the scripted item.</div>
</td>
</tr>
<tr id="i37" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setMaxStackSize(int)">setMaxStackSize</a></span>&#8203;(int&nbsp;maxStackSize)</code></th>
<td class="colLast">
<div class="block">Sets the maximum stack size for the scripted item.</div>
</td>
</tr>
<tr id="i38" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setRotation(float,float,float)">setRotation</a></span>&#8203;(float&nbsp;rotationX,
float&nbsp;rotationY,
float&nbsp;rotationZ)</code></th>
<td class="colLast">
<div class="block">Sets the rotation values for the scripted item.</div>
</td>
</tr>
<tr id="i39" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setRotationRate(float,float,float)">setRotationRate</a></span>&#8203;(float&nbsp;rotationXRate,
float&nbsp;rotationYRate,
float&nbsp;rotationZRate)</code></th>
<td class="colLast">
<div class="block">Sets the rotation rate values for the scripted item.</div>
</td>
</tr>
<tr id="i40" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setScale(float,float,float)">setScale</a></span>&#8203;(float&nbsp;scaleX,
float&nbsp;scaleY,
float&nbsp;scaleZ)</code></th>
<td class="colLast">
<div class="block">Sets the scale values for the scripted item.</div>
</td>
</tr>
<tr id="i41" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setTexture(java.lang.String)">setTexture</a></span>&#8203;(java.lang.String&nbsp;texture)</code></th>
<td class="colLast">
<div class="block">Sets the texture path for the scripted item.</div>
</td>
</tr>
<tr id="i42" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setTranslate(float,float,float)">setTranslate</a></span>&#8203;(float&nbsp;translateX,
float&nbsp;translateY,
float&nbsp;translateZ)</code></th>
<td class="colLast">
<div class="block">Sets the translation values for the scripted item.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a id="methods.inherited.from.class.noppes.npcs.api.item.IItemStack">
<!-- -->
</a>
<h3>Methods inherited from interface&nbsp;noppes.npcs.api.item.<a href="IItemStack.html" title="interface in noppes.npcs.api.item">IItemStack</a></h3>
<code><a href="IItemStack.html#addEnchant(int,int)">addEnchant</a>, <a href="IItemStack.html#getAttribute(java.lang.String)">getAttribute</a>, <a href="IItemStack.html#getBookAuthor()">getBookAuthor</a>, <a href="IItemStack.html#getBookText()">getBookText</a>, <a href="IItemStack.html#getBookTitle()">getBookTitle</a>, <a href="IItemStack.html#getDisplayName()">getDisplayName</a>, <a href="IItemStack.html#getItemDamage()">getItemDamage</a>, <a href="IItemStack.html#getItemName()">getItemName</a>, <a href="IItemStack.html#getItemNbt()">getItemNbt</a>, <a href="IItemStack.html#getLore()">getLore</a>, <a href="IItemStack.html#getMaxStackSize()">getMaxStackSize</a>, <a href="IItemStack.html#getMCItemStack()">getMCItemStack</a>, <a href="IItemStack.html#getMCNbt()">getMCNbt</a>, <a href="IItemStack.html#getName()">getName</a>, <a href="IItemStack.html#getNbt()">getNbt</a>, <a href="IItemStack.html#getStackSize()">getStackSize</a>, <a href="IItemStack.html#getTag(java.lang.String)">getTag</a>, <a href="IItemStack.html#hasAttribute(java.lang.String)">hasAttribute</a>, <a href="IItemStack.html#hasCustomName()">hasCustomName</a>, <a href="IItemStack.html#hasEnchant(int)">hasEnchant</a>, <a href="IItemStack.html#hasLore()">hasLore</a>, <a href="IItemStack.html#hasTag(java.lang.String)">hasTag</a>, <a href="IItemStack.html#isBlock()">isBlock</a>, <a href="IItemStack.html#isEnchanted()">isEnchanted</a>, <a href="IItemStack.html#isWrittenBook()">isWrittenBook</a>, <a href="IItemStack.html#itemHash()">itemHash</a>, <a href="IItemStack.html#removeTags()">removeTags</a>, <a href="IItemStack.html#setAttribute(java.lang.String,double)">setAttribute</a>, <a href="IItemStack.html#setCustomName(java.lang.String)">setCustomName</a>, <a href="IItemStack.html#setItemDamage(int)">setItemDamage</a>, <a href="IItemStack.html#setLore(java.lang.String%5B%5D)">setLore</a>, <a href="IItemStack.html#setMCNbt(net.minecraft.nbt.NBTTagCompound)">setMCNbt</a>, <a href="IItemStack.html#setStackSize(int)">setStackSize</a>, <a href="IItemStack.html#setTag(java.lang.String,java.lang.Object)">setTag</a></code></li>
</ul>
</li>
</ul>
</section>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ METHOD DETAIL ========== -->
<section>
<ul class="blockList">
<li class="blockList"><a id="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a id="getEnabled()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getEnabled</h4>
<pre class="methodSignature">boolean&nbsp;getEnabled()</pre>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>true if scripted item script is enabled</dd>
</dl>
</li>
</ul>
<a id="setEnabled(boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setEnabled</h4>
<pre class="methodSignature">void&nbsp;setEnabled&#8203;(boolean&nbsp;enable)</pre>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>enable</code> - Enable or Disable scripted item script</dd>
</dl>
</li>
</ul>
<a id="getTexture()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTexture</h4>
<pre class="methodSignature">java.lang.String&nbsp;getTexture()</pre>
<div class="block">Gets the texture path for the scripted item.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The texture path</dd>
</dl>
</li>
</ul>
<a id="setTexture(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setTexture</h4>
<pre class="methodSignature">void&nbsp;setTexture&#8203;(java.lang.String&nbsp;texture)</pre>
<div class="block">Sets the texture path for the scripted item. Can be a URL</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>texture</code> - The texture path</dd>
</dl>
</li>
</ul>
<a id="setArmorType(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setArmorType</h4>
<pre class="methodSignature">void&nbsp;setArmorType&#8203;(int&nbsp;armorType)</pre>
<div class="block">Sets the armor type for the scripted item.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>armorType</code> - The armor type</dd>
</dl>
</li>
</ul>
<a id="getArmorType()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getArmorType</h4>
<pre class="methodSignature">int&nbsp;getArmorType()</pre>
<div class="block">Gets the armor type for the scripted item.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The armor type</dd>
</dl>
</li>
</ul>
<a id="setIsTool(boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setIsTool</h4>
<pre class="methodSignature">void&nbsp;setIsTool&#8203;(boolean&nbsp;isTool)</pre>
<div class="block">Sets whether the scripted item is a tool.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>isTool</code> - True if the item is a tool, false otherwise</dd>
</dl>
</li>
</ul>
<a id="isTool()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isTool</h4>
<pre class="methodSignature">boolean&nbsp;isTool()</pre>
<div class="block">Checks if the scripted item is a tool. Allows for enchanting</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>True if the item is a tool, false otherwise</dd>
</dl>
</li>
</ul>
<a id="setIsNormalItem(boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setIsNormalItem</h4>
<pre class="methodSignature">void&nbsp;setIsNormalItem&#8203;(boolean&nbsp;normalItem)</pre>
<div class="block">Sets whether the scripted item is a normal item. Will disable
all forms of Rotation, Translation, Scale Rendering in hand and on ground</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>normalItem</code> - True if the item is a normal item, false otherwise</dd>
</dl>
</li>
</ul>
<a id="isNormalItem()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isNormalItem</h4>
<pre class="methodSignature">boolean&nbsp;isNormalItem()</pre>
<div class="block">Checks if the scripted item is a normal item.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>True if the item is a normal item, false otherwise</dd>
</dl>
</li>
</ul>
<a id="setDigSpeed(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setDigSpeed</h4>
<pre class="methodSignature">void&nbsp;setDigSpeed&#8203;(int&nbsp;digSpeed)</pre>
<div class="block">Sets the dig speed for the scripted item.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>digSpeed</code> - The dig speed</dd>
</dl>
</li>
</ul>
<a id="getDigSpeed()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDigSpeed</h4>
<pre class="methodSignature">int&nbsp;getDigSpeed()</pre>
<div class="block">Gets the dig speed for the scripted item.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The dig speed</dd>
</dl>
</li>
</ul>
<a id="setMaxStackSize(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setMaxStackSize</h4>
<pre class="methodSignature">void&nbsp;setMaxStackSize&#8203;(int&nbsp;maxStackSize)</pre>
<div class="block">Sets the maximum stack size for the scripted item.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>maxStackSize</code> - The maximum stack size</dd>
</dl>
</li>
</ul>
<a id="getDurabilityValue()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDurabilityValue</h4>
<pre class="methodSignature">double&nbsp;getDurabilityValue()</pre>
<div class="block">Gets the current durability value for the scripted item.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The durability value</dd>
</dl>
</li>
</ul>
<a id="setDurabilityValue(float)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setDurabilityValue</h4>
<pre class="methodSignature">void&nbsp;setDurabilityValue&#8203;(float&nbsp;durabilityValue)</pre>
<div class="block">Sets the current durability value for the scripted item.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>durabilityValue</code> - The durability value</dd>
</dl>
</li>
</ul>
<a id="getDurabilityShow()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDurabilityShow</h4>
<pre class="methodSignature">boolean&nbsp;getDurabilityShow()</pre>
<div class="block">Checks if the durability bar should be shown for the scripted item.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>True if the durability bar should be shown, false otherwise</dd>
</dl>
</li>
</ul>
<a id="setDurabilityShow(boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setDurabilityShow</h4>
<pre class="methodSignature">void&nbsp;setDurabilityShow&#8203;(boolean&nbsp;durabilityShow)</pre>
<div class="block">Sets whether the durability bar should be shown for the scripted item.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>durabilityShow</code> - True if the durability bar should be shown, false otherwise</dd>
</dl>
</li>
</ul>
<a id="getDurabilityColor()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDurabilityColor</h4>
<pre class="methodSignature">int&nbsp;getDurabilityColor()</pre>
<div class="block">Gets the color of the durability bar for the scripted item.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The durability bar color</dd>
</dl>
</li>
</ul>
<a id="setDurabilityColor(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setDurabilityColor</h4>
<pre class="methodSignature">void&nbsp;setDurabilityColor&#8203;(int&nbsp;durabilityColor)</pre>
<div class="block">Sets the color of the durability bar for the scripted item.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>durabilityColor</code> - The durability bar color</dd>
</dl>
</li>
</ul>
<a id="getColor()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getColor</h4>
<pre class="methodSignature">int&nbsp;getColor()</pre>
<div class="block">Gets the color of the scripted item.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The item color</dd>
</dl>
</li>
</ul>
<a id="setColor(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setColor</h4>
<pre class="methodSignature">void&nbsp;setColor&#8203;(int&nbsp;color)</pre>
<div class="block">Sets the color of the scripted item.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>color</code> - The item color</dd>
</dl>
</li>
</ul>
<a id="getMaxItemUseDuration()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMaxItemUseDuration</h4>
<pre class="methodSignature">int&nbsp;getMaxItemUseDuration()</pre>
<div class="block">Gets the maximum item use duration for the scripted item.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The maximum item use duration</dd>
</dl>
</li>
</ul>
<a id="setMaxItemUseDuration(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setMaxItemUseDuration</h4>
<pre class="methodSignature">void&nbsp;setMaxItemUseDuration&#8203;(int&nbsp;duration)</pre>
<div class="block">Sets the maximum item use duration for the scripted item.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>duration</code> - The maximum item use duration</dd>
</dl>
</li>
</ul>
<a id="setItemUseAction(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setItemUseAction</h4>
<pre class="methodSignature">void&nbsp;setItemUseAction&#8203;(int&nbsp;action)</pre>
<div class="block">Sets the item use action for the scripted item.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>action</code> - The item use action</dd>
</dl>
</li>
</ul>
<a id="getItemUseAction()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getItemUseAction</h4>
<pre class="methodSignature">int&nbsp;getItemUseAction()</pre>
<div class="block">Gets the item use action for the scripted item.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The item use action</dd>
</dl>
</li>
</ul>
<a id="getEnchantability()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getEnchantability</h4>
<pre class="methodSignature">int&nbsp;getEnchantability()</pre>
<div class="block">Gets the enchantability for the scripted item.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The enchantability</dd>
</dl>
</li>
</ul>
<a id="setEnchantability(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setEnchantability</h4>
<pre class="methodSignature">void&nbsp;setEnchantability&#8203;(int&nbsp;enchantability)</pre>
<div class="block">Sets the enchantability for the scripted item.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>enchantability</code> - The enchantability</dd>
</dl>
</li>
</ul>
<a id="setRotation(float,float,float)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setRotation</h4>
<pre class="methodSignature">void&nbsp;setRotation&#8203;(float&nbsp;rotationX,
float&nbsp;rotationY,
float&nbsp;rotationZ)</pre>
<div class="block">Sets the rotation values for the scripted item.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>rotationX</code> - The X-axis rotation</dd>
<dd><code>rotationY</code> - The Y-axis rotation</dd>
<dd><code>rotationZ</code> - The Z-axis rotation</dd>
</dl>
</li>
</ul>
<a id="setRotationRate(float,float,float)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setRotationRate</h4>
<pre class="methodSignature">void&nbsp;setRotationRate&#8203;(float&nbsp;rotationXRate,
float&nbsp;rotationYRate,
float&nbsp;rotationZRate)</pre>
<div class="block">Sets the rotation rate values for the scripted item. Spinning Speed</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>rotationXRate</code> - The X-axis rotation rate</dd>
<dd><code>rotationYRate</code> - The Y-axis rotation rate</dd>
<dd><code>rotationZRate</code> - The Z-axis rotation rate</dd>
</dl>
</li>
</ul>
<a id="setScale(float,float,float)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setScale</h4>
<pre class="methodSignature">void&nbsp;setScale&#8203;(float&nbsp;scaleX,
float&nbsp;scaleY,
float&nbsp;scaleZ)</pre>
<div class="block">Sets the scale values for the scripted item.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>scaleX</code> - The X-axis scale</dd>
<dd><code>scaleY</code> - The Y-axis scale</dd>
<dd><code>scaleZ</code> - The Z-axis scale</dd>
</dl>
</li>
</ul>
<a id="setTranslate(float,float,float)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setTranslate</h4>
<pre class="methodSignature">void&nbsp;setTranslate&#8203;(float&nbsp;translateX,
float&nbsp;translateY,
float&nbsp;translateZ)</pre>
<div class="block">Sets the translation values for the scripted item.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>translateX</code> - The X-axis translation</dd>
<dd><code>translateY</code> - The Y-axis translation</dd>
<dd><code>translateZ</code> - The Z-axis translation</dd>
</dl>
</li>
</ul>
<a id="getRotationX()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getRotationX</h4>
<pre class="methodSignature">float&nbsp;getRotationX()</pre>
<div class="block">Gets the X-axis rotation for the scripted item.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The X-axis rotation</dd>
</dl>
</li>
</ul>
<a id="getRotationY()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getRotationY</h4>
<pre class="methodSignature">float&nbsp;getRotationY()</pre>
<div class="block">Gets the Y-axis rotation for the scripted item.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The Y-axis rotation</dd>
</dl>
</li>
</ul>
<a id="getRotationZ()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getRotationZ</h4>
<pre class="methodSignature">float&nbsp;getRotationZ()</pre>
<div class="block">Gets the Z-axis rotation for the scripted item.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The Z-axis rotation</dd>
</dl>
</li>
</ul>
<a id="getRotationXRate()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getRotationXRate</h4>
<pre class="methodSignature">float&nbsp;getRotationXRate()</pre>
<div class="block">Gets the X-axis rotation rate for the scripted item.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The X-axis rotation rate</dd>
</dl>
</li>
</ul>
<a id="getRotationYRate()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getRotationYRate</h4>
<pre class="methodSignature">float&nbsp;getRotationYRate()</pre>
<div class="block">Gets the Y-axis rotation rate for the scripted item.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The Y-axis rotation rate</dd>
</dl>
</li>
</ul>
<a id="getRotationZRate()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getRotationZRate</h4>
<pre class="methodSignature">float&nbsp;getRotationZRate()</pre>
<div class="block">Gets the Z-axis rotation rate for the scripted item.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The Z-axis rotation rate</dd>
</dl>
</li>
</ul>
<a id="getScaleX()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getScaleX</h4>
<pre class="methodSignature">float&nbsp;getScaleX()</pre>
<div class="block">Gets the X-axis scale for the scripted item.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The X-axis scale</dd>
</dl>
</li>
</ul>
<a id="getScaleY()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getScaleY</h4>
<pre class="methodSignature">float&nbsp;getScaleY()</pre>
<div class="block">Gets the Y-axis scale for the scripted item.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The Y-axis scale</dd>
</dl>
</li>
</ul>
<a id="getScaleZ()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getScaleZ</h4>
<pre class="methodSignature">float&nbsp;getScaleZ()</pre>
<div class="block">Gets the Z-axis scale for the scripted item.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The Z-axis scale</dd>
</dl>
</li>
</ul>
<a id="getTranslateX()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTranslateX</h4>
<pre class="methodSignature">float&nbsp;getTranslateX()</pre>
<div class="block">Gets the X-axis translation for the scripted item.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The X-axis translation</dd>
</dl>
</li>
</ul>
<a id="getTranslateY()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTranslateY</h4>
<pre class="methodSignature">float&nbsp;getTranslateY()</pre>
<div class="block">Gets the Y-axis translation for the scripted item.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The Y-axis translation</dd>
</dl>
</li>
</ul>
<a id="getTranslateZ()">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>getTranslateZ</h4>
<pre class="methodSignature">float&nbsp;getTranslateZ()</pre>
<div class="block">Gets the Z-axis translation for the scripted item.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The Z-axis translation</dd>
</dl>
</li>
</ul>
</li>
</ul>
</section>
</li>
</ul>
</div>
</div>
</main>
<!-- ========= END OF CLASS DATA ========= -->
<footer role="contentinfo">
<nav role="navigation">
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a id="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../index.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-files/index-1.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../allclasses.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a id="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</nav>
</footer>
</body>
</html>