mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-11 20:47:38 +00:00
481 lines
22 KiB
HTML
481 lines
22 KiB
HTML
<!DOCTYPE HTML>
|
|
<!-- NewPage -->
|
|
<html lang="en">
|
|
<head>
|
|
<!-- Generated by javadoc (11.0.27) on Tue Oct 28 02:00:43 EDT 2025 -->
|
|
<title>IItemCustom</title>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
<meta name="dc.created" content="2025-10-28">
|
|
<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.7.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};
|
|
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 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: </li>
|
|
<li>Nested | </li>
|
|
<li>Field | </li>
|
|
<li>Constr | </li>
|
|
<li><a href="#method.summary">Method</a></li>
|
|
</ul>
|
|
<ul class="subNavList">
|
|
<li>Detail: </li>
|
|
<li>Field | </li>
|
|
<li>Constr | </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"> </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> <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="IItemCustomizable.html" title="interface in noppes.npcs.api.item">IItemCustomizable</a></code>, <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="IItemCustomizable.html" title="interface in noppes.npcs.api.item">IItemCustomizable</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"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t3" class="tableTab"><span><a href="javascript:show(4);">Abstract Methods</a></span><span class="tabEnd"> </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>boolean</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getEnabled()">getEnabled</a></span>()</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i1" 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>​(int armorType)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Sets the armor type for the scripted item.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i2" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setDigSpeed(int)">setDigSpeed</a></span>​(int digSpeed)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Sets the dig speed for the scripted item.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i3" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setDurabilityValue(float)">setDurabilityValue</a></span>​(float durabilityValue)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Sets the current durability value for the scripted item.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i4" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setEnabled(boolean)">setEnabled</a></span>​(boolean enable)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i5" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setEnchantability(int)">setEnchantability</a></span>​(int enchantability)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Sets the enchantability for the scripted item.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i6" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setIsNormalItem(boolean)">setIsNormalItem</a></span>​(boolean normalItem)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Sets whether the scripted item is a normal item.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i7" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setIsTool(boolean)">setIsTool</a></span>​(boolean isTool)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Sets whether the scripted item is a tool.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i8" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setItemUseAction(int)">setItemUseAction</a></span>​(int action)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Sets the item use action for the scripted item.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i9" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setMaxItemUseDuration(int)">setMaxItemUseDuration</a></span>​(int duration)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Sets the maximum item use duration for the scripted item.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i10" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setMaxStackSize(int)">setMaxStackSize</a></span>​(int maxStackSize)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Sets the maximum stack size for the scripted item.</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<ul class="blockList">
|
|
<li class="blockList"><a id="methods.inherited.from.class.noppes.npcs.api.item.IItemCustomizable">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Methods inherited from interface noppes.npcs.api.item.<a href="IItemCustomizable.html" title="interface in noppes.npcs.api.item">IItemCustomizable</a></h3>
|
|
<code><a href="IItemCustomizable.html#getArmorType()">getArmorType</a>, <a href="IItemCustomizable.html#getColor()">getColor</a>, <a href="IItemCustomizable.html#getDigSpeed()">getDigSpeed</a>, <a href="IItemCustomizable.html#getDurabilityColor()">getDurabilityColor</a>, <a href="IItemCustomizable.html#getDurabilityShow()">getDurabilityShow</a>, <a href="IItemCustomizable.html#getDurabilityValue()">getDurabilityValue</a>, <a href="IItemCustomizable.html#getEnchantability()">getEnchantability</a>, <a href="IItemCustomizable.html#getItemUseAction()">getItemUseAction</a>, <a href="IItemCustomizable.html#getMaxItemUseDuration()">getMaxItemUseDuration</a>, <a href="IItemCustomizable.html#getMaxStackSize()">getMaxStackSize</a>, <a href="IItemCustomizable.html#getRotationX()">getRotationX</a>, <a href="IItemCustomizable.html#getRotationXRate()">getRotationXRate</a>, <a href="IItemCustomizable.html#getRotationY()">getRotationY</a>, <a href="IItemCustomizable.html#getRotationYRate()">getRotationYRate</a>, <a href="IItemCustomizable.html#getRotationZ()">getRotationZ</a>, <a href="IItemCustomizable.html#getRotationZRate()">getRotationZRate</a>, <a href="IItemCustomizable.html#getScaleX()">getScaleX</a>, <a href="IItemCustomizable.html#getScaleY()">getScaleY</a>, <a href="IItemCustomizable.html#getScaleZ()">getScaleZ</a>, <a href="IItemCustomizable.html#getScriptHandler()">getScriptHandler</a>, <a href="IItemCustomizable.html#getTexture()">getTexture</a>, <a href="IItemCustomizable.html#getTranslateX()">getTranslateX</a>, <a href="IItemCustomizable.html#getTranslateY()">getTranslateY</a>, <a href="IItemCustomizable.html#getTranslateZ()">getTranslateZ</a>, <a href="IItemCustomizable.html#isNormalItem()">isNormalItem</a>, <a href="IItemCustomizable.html#isTool()">isTool</a>, <a href="IItemCustomizable.html#setColor(java.lang.Integer)">setColor</a>, <a href="IItemCustomizable.html#setDurabilityColor(java.lang.Integer)">setDurabilityColor</a>, <a href="IItemCustomizable.html#setDurabilityShow(java.lang.Boolean)">setDurabilityShow</a>, <a href="IItemCustomizable.html#setRotation(java.lang.Float,java.lang.Float,java.lang.Float)">setRotation</a>, <a href="IItemCustomizable.html#setRotationRate(java.lang.Float,java.lang.Float,java.lang.Float)">setRotationRate</a>, <a href="IItemCustomizable.html#setScale(java.lang.Float,java.lang.Float,java.lang.Float)">setScale</a>, <a href="IItemCustomizable.html#setTexture(java.lang.String)">setTexture</a>, <a href="IItemCustomizable.html#setTranslate(java.lang.Float,java.lang.Float,java.lang.Float)">setTranslate</a></code></li>
|
|
</ul>
|
|
<ul class="blockList">
|
|
<li class="blockList"><a id="methods.inherited.from.class.noppes.npcs.api.item.IItemStack">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Methods inherited from interface 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#compare(noppes.npcs.api.item.IItemStack,boolean)">compare</a>, <a href="IItemStack.html#compare(noppes.npcs.api.item.IItemStack,boolean,boolean)">compare</a>, <a href="IItemStack.html#copy()">copy</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#getCustomAttribute(java.lang.String)">getCustomAttribute</a>, <a href="IItemStack.html#getCustomAttributeKeys()">getCustomAttributeKeys</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#getMagicAttribute(java.lang.String,int)">getMagicAttribute</a>, <a href="IItemStack.html#getMagicAttributeKeys(java.lang.String)">getMagicAttributeKeys</a>, <a href="IItemStack.html#getMaxItemDamage()">getMaxItemDamage</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#getRequirement(java.lang.String)">getRequirement</a>, <a href="IItemStack.html#getRequirementKeys()">getRequirementKeys</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#hasCustomAttribute(java.lang.String)">hasCustomAttribute</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#hasMagicAttribute(java.lang.String,int)">hasMagicAttribute</a>, <a href="IItemStack.html#hasRequirement(java.lang.String)">hasRequirement</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#removeCustomAttribute(java.lang.String)">removeCustomAttribute</a>, <a href="IItemStack.html#removeMagicAttribute(java.lang.String,int)">removeMagicAttribute</a>, <a href="IItemStack.html#removeRequirement(java.lang.String)">removeRequirement</a>, <a href="IItemStack.html#removeTags()">removeTags</a>, <a href="IItemStack.html#setAttribute(java.lang.String,double)">setAttribute</a>, <a href="IItemStack.html#setCustomAttribute(java.lang.String,double)">setCustomAttribute</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#setMagicAttribute(java.lang.String,int,double)">setMagicAttribute</a>, <a href="IItemStack.html#setMCNbt(net.minecraft.nbt.NBTTagCompound)">setMCNbt</a>, <a href="IItemStack.html#setRequirement(java.lang.String,java.lang.Object)">setRequirement</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 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 setEnabled​(boolean 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="setArmorType(int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setArmorType</h4>
|
|
<pre class="methodSignature">void setArmorType​(int 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="setIsTool(boolean)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setIsTool</h4>
|
|
<pre class="methodSignature">void setIsTool​(boolean 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="setIsNormalItem(boolean)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setIsNormalItem</h4>
|
|
<pre class="methodSignature">void setIsNormalItem​(boolean 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="setDigSpeed(int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setDigSpeed</h4>
|
|
<pre class="methodSignature">void setDigSpeed​(int 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="setMaxStackSize(int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setMaxStackSize</h4>
|
|
<pre class="methodSignature">void setMaxStackSize​(int 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="setDurabilityValue(float)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setDurabilityValue</h4>
|
|
<pre class="methodSignature">void setDurabilityValue​(float 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="setMaxItemUseDuration(int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setMaxItemUseDuration</h4>
|
|
<pre class="methodSignature">void setMaxItemUseDuration​(int 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 setItemUseAction​(int 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="setEnchantability(int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>setEnchantability</h4>
|
|
<pre class="methodSignature">void setEnchantability​(int 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>
|
|
</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 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: </li>
|
|
<li>Nested | </li>
|
|
<li>Field | </li>
|
|
<li>Constr | </li>
|
|
<li><a href="#method.summary">Method</a></li>
|
|
</ul>
|
|
<ul class="subNavList">
|
|
<li>Detail: </li>
|
|
<li>Field | </li>
|
|
<li>Constr | </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>
|