<divclass="aboutLanguage"><divid="javadoc-header"><ahref="/CustomNPC-Plus/"class="header-brand"><divclass="header-title"> CustomNPC+ <span>Javadoc Reference</span></div></a><ahref="/CustomNPC-Plus/"class="header-back"> Back to Index </a></div></div>
<thclass="colFirst"scope="col">Modifier and Type</th>
<thclass="colSecond"scope="col">Method</th>
<thclass="colLast"scope="col">Description</th>
</tr>
<trid="i0"class="altColor">
<tdclass="colFirst"><code><ahref="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html?is-external=true"title="class or interface in java.lang"class="externalLink">String</a></code></td>
<divclass="block">Sets the animation part by ordinal ID.</div>
</td>
</tr>
<trid="i9"class="rowColor">
<tdclass="colFirst"><code><ahref="IFramePart.html"title="interface in noppes.npcs.api.handler.data">IFramePart</a></code></td>
<thclass="colSecond"scope="row"><code><spanclass="memberNameLink"><ahref="#setPart(java.lang.String)">setPart</a></span>​(<ahref="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html?is-external=true"title="class or interface in java.lang"class="externalLink">String</a> name)</code></th>
<tdclass="colLast">
<divclass="block">Sets the animation part by name.</div>
</td>
</tr>
<trid="i10"class="altColor">
<tdclass="colFirst"><code><ahref="IFramePart.html"title="interface in noppes.npcs.api.handler.data">IFramePart</a></code></td>
<divclass="block">Sets the interpolation speed of this part.</div>
</td>
</tr>
</table>
</li>
</ul>
</section>
</li>
</ul>
</div>
<divclass="details">
<ulclass="blockList">
<liclass="blockList">
<!-- ============ METHOD DETAIL ========== -->
<section>
<ulclass="blockList">
<liclass="blockList"><aid="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<aid="getName()">
<!-- -->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>getName</h4>
<preclass="methodSignature"><ahref="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html?is-external=true"title="class or interface in java.lang"class="externalLink">String</a> getName()</pre>
<dl>
<dt><spanclass="returnLabel">Returns:</span></dt>
<dd>The name of the animation part (e.g. HEAD, BODY, RIGHT_ARM, LEFT_ARM, RIGHT_LEG, LEFT_LEG, FULL_MODEL)</dd>
<preclass="methodSignature"><ahref="IFramePart.html"title="interface in noppes.npcs.api.handler.data">IFramePart</a> setPart​(<ahref="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html?is-external=true"title="class or interface in java.lang"class="externalLink">String</a> name)</pre>
<divclass="block">Sets the animation part by name.</div>
<dd><code>name</code> - The part name (e.g. HEAD, BODY, RIGHT_ARM, LEFT_ARM, RIGHT_LEG, LEFT_LEG, FULL_MODEL)</dd>
<dt><spanclass="returnLabel">Returns:</span></dt>
<dd>This frame part for chaining</dd>
</dl>
</li>
</ul>
<aid="setPart(int)">
<!-- -->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>setPart</h4>
<preclass="methodSignature"><ahref="IFramePart.html"title="interface in noppes.npcs.api.handler.data">IFramePart</a> setPart​(int partId)</pre>
<divclass="block">Sets the animation part by ordinal ID.</div>
<dd>The rotation angles as a float array [x, y, z] in degrees</dd>
</dl>
</li>
</ul>
<aid="setRotations(float[])">
<!-- -->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>setRotations</h4>
<preclass="methodSignature"><ahref="IFramePart.html"title="interface in noppes.npcs.api.handler.data">IFramePart</a> setRotations​(float[] rotation)</pre>
<dd>The pivot offsets as a float array [x, y, z]</dd>
</dl>
</li>
</ul>
<aid="setPivots(float[])">
<!-- -->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>setPivots</h4>
<preclass="methodSignature"><ahref="IFramePart.html"title="interface in noppes.npcs.api.handler.data">IFramePart</a> setPivots​(float[] pivot)</pre>
<dd>Whether this part has custom speed and smooth settings that override the parent frame</dd>
</dl>
</li>
</ul>
<aid="setCustomized(boolean)">
<!-- -->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>setCustomized</h4>
<preclass="methodSignature"><ahref="IFramePart.html"title="interface in noppes.npcs.api.handler.data">IFramePart</a> setCustomized​(boolean customized)</pre>
<divclass="block">Sets whether this part uses custom speed and smooth settings.</div>
<preclass="methodSignature"><ahref="IFramePart.html"title="interface in noppes.npcs.api.handler.data">IFramePart</a> setSpeed​(float speed)</pre>
<divclass="block">Sets the interpolation speed of this part.</div>
<preclass="methodSignature"><ahref="IFramePart.html"title="interface in noppes.npcs.api.handler.data">IFramePart</a> setSmooth​(byte smooth)</pre>
<divclass="block">Sets the smooth interpolation type.</div>
<divclass="aboutLanguage"><script>(function(){// Fix uppercase text in table cells // Javadoc 11: method names are in th[scope="row"] a, not td a function fixCase() { document.querySelectorAll("th[scope='row'] a, td a, .memberNameLink a").forEach(function(el) { var t = el.textContent.trim(); if (t.length > 2 && t === t.toUpperCase() && t.indexOf(" ") === -1) { el.textContent = t.toLowerCase(); } }); } // Correct navPadding = topNav height + subNav height // Uses !important to override jQuery's inline style function fixPadding() { var topNav = document.querySelector(".topNav"); var subNav = document.querySelector(".subNav"); var pad = document.querySelector(".navPadding"); if (!pad) return; var h = (topNav ? topNav.offsetHeight : 0) + (subNav ? subNav.offsetHeight : 0); if (h > 0) { pad.style.setProperty("padding-top", h + "px", "important"); } } document.addEventListener("DOMContentLoaded", function() { fixCase(); // Run fixPadding after jQuery has had its chance setTimeout(fixPadding, 0); setTimeout(fixPadding, 50); setTimeout(fixPadding, 200); // Use MutationObserver to permanently override any further jQuery writes var pad = document.querySelector(".navPadding"); if (pad) { var observer = new MutationObserver(function() { fixPadding(); }); observer.observe(pad, { attributes: true, attributeFilter: ["style"] }); } }); })(); </script></div>