mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-11 04:27:32 +00:00
616 lines
21 KiB
HTML
616 lines
21 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>ICustomGuiComponent</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="ICustomGuiComponent";
|
|
}
|
|
}
|
|
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};
|
|
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.gui</a></div>
|
|
<h2 title="Interface ICustomGuiComponent" class="title">Interface ICustomGuiComponent</h2>
|
|
</div>
|
|
<div class="contentContainer">
|
|
<div class="description">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<dl>
|
|
<dt>All Known Subinterfaces:</dt>
|
|
<dd><code><a href="IButton.html" title="interface in noppes.npcs.api.gui">IButton</a></code>, <code><a href="IItemSlot.html" title="interface in noppes.npcs.api.gui">IItemSlot</a></code>, <code><a href="ILabel.html" title="interface in noppes.npcs.api.gui">ILabel</a></code>, <code><a href="ILine.html" title="interface in noppes.npcs.api.gui">ILine</a></code>, <code><a href="IScroll.html" title="interface in noppes.npcs.api.gui">IScroll</a></code>, <code><a href="ITextField.html" title="interface in noppes.npcs.api.gui">ITextField</a></code>, <code><a href="ITexturedRect.html" title="interface in noppes.npcs.api.gui">ITexturedRect</a></code></dd>
|
|
</dl>
|
|
<hr>
|
|
<pre>public interface <span class="typeNameLabel">ICustomGuiComponent</span></pre>
|
|
<div class="block">Base interface for all custom GUI components.
|
|
Defines common methods for position, appearance, and NBT serialization.</div>
|
|
</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><a href="ICustomGuiComponent.html" title="interface in noppes.npcs.api.gui">ICustomGuiComponent</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#fromNBT(net.minecraft.nbt.NBTTagCompound)">fromNBT</a></span>​(net.minecraft.nbt.NBTTagCompound nbt)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Deserializes the component from an NBT compound.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i1" class="rowColor">
|
|
<td class="colFirst"><code>float</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getAlpha()">getAlpha</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns the component's transparency (alpha).</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="#getColor()">getColor</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns the text color.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i3" class="rowColor">
|
|
<td class="colFirst"><code>java.lang.String[]</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getHoverText()">getHoverText</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns the hover text as an array of strings.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i4" class="altColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getID()">getID</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns the unique ID of this component.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i5" class="rowColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getPosX()">getPosX</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns the x position of this component.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i6" class="altColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getPosY()">getPosY</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns the y position of this component.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i7" class="rowColor">
|
|
<td class="colFirst"><code>float</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getRotation()">getRotation</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns the component's rotation.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i8" class="altColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#hasHoverText()">hasHoverText</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Checks if the component has hover text.</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="#setAlpha(float)">setAlpha</a></span>​(float alpha)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Sets the component's transparency (alpha).</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i10" class="altColor">
|
|
<td class="colFirst"><code><a href="ICustomGuiComponent.html" title="interface in noppes.npcs.api.gui">ICustomGuiComponent</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setColor(int)">setColor</a></span>​(int color)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Sets the text color.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i11" class="rowColor">
|
|
<td class="colFirst"><code><a href="ICustomGuiComponent.html" title="interface in noppes.npcs.api.gui">ICustomGuiComponent</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setHoverText(java.lang.String)">setHoverText</a></span>​(java.lang.String hoverText)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Sets the hover text with a single line.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i12" class="altColor">
|
|
<td class="colFirst"><code><a href="ICustomGuiComponent.html" title="interface in noppes.npcs.api.gui">ICustomGuiComponent</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setHoverText(java.lang.String%5B%5D)">setHoverText</a></span>​(java.lang.String[] hoverTextLines)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Sets the hover text with multiple lines.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i13" class="rowColor">
|
|
<td class="colFirst"><code><a href="ICustomGuiComponent.html" title="interface in noppes.npcs.api.gui">ICustomGuiComponent</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setID(int)">setID</a></span>​(int id)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Sets the unique ID for this component.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i14" class="altColor">
|
|
<td class="colFirst"><code><a href="ICustomGuiComponent.html" title="interface in noppes.npcs.api.gui">ICustomGuiComponent</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setPos(int,int)">setPos</a></span>​(int x,
|
|
int y)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Sets the position of the component.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i15" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setRotation(float)">setRotation</a></span>​(float rotation)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Sets the component's rotation.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i16" class="altColor">
|
|
<td class="colFirst"><code>net.minecraft.nbt.NBTTagCompound</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#toNBT(net.minecraft.nbt.NBTTagCompound)">toNBT</a></span>​(net.minecraft.nbt.NBTTagCompound nbt)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Serializes the component to an NBT compound.</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</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="getID()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getID</h4>
|
|
<pre class="methodSignature">int getID()</pre>
|
|
<div class="block">Returns the unique ID of this component.</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the component ID.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="setID(int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setID</h4>
|
|
<pre class="methodSignature"><a href="ICustomGuiComponent.html" title="interface in noppes.npcs.api.gui">ICustomGuiComponent</a> setID​(int id)</pre>
|
|
<div class="block">Sets the unique ID for this component.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>id</code> - the new ID.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>this component instance.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getPosX()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getPosX</h4>
|
|
<pre class="methodSignature">int getPosX()</pre>
|
|
<div class="block">Returns the x position of this component.</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the x position.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getPosY()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getPosY</h4>
|
|
<pre class="methodSignature">int getPosY()</pre>
|
|
<div class="block">Returns the y position of this component.</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the y position.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="setPos(int,int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setPos</h4>
|
|
<pre class="methodSignature"><a href="ICustomGuiComponent.html" title="interface in noppes.npcs.api.gui">ICustomGuiComponent</a> setPos​(int x,
|
|
int y)</pre>
|
|
<div class="block">Sets the position of the component.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>x</code> - the new x position.</dd>
|
|
<dd><code>y</code> - the new y position.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>this component instance.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="hasHoverText()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>hasHoverText</h4>
|
|
<pre class="methodSignature">boolean hasHoverText()</pre>
|
|
<div class="block">Checks if the component has hover text.</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>true if hover text is set.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getHoverText()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getHoverText</h4>
|
|
<pre class="methodSignature">java.lang.String[] getHoverText()</pre>
|
|
<div class="block">Returns the hover text as an array of strings.</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the hover text.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="setHoverText(java.lang.String)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setHoverText</h4>
|
|
<pre class="methodSignature"><a href="ICustomGuiComponent.html" title="interface in noppes.npcs.api.gui">ICustomGuiComponent</a> setHoverText​(java.lang.String hoverText)</pre>
|
|
<div class="block">Sets the hover text with a single line.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>hoverText</code> - the hover text.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>this component instance.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="setHoverText(java.lang.String[])">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setHoverText</h4>
|
|
<pre class="methodSignature"><a href="ICustomGuiComponent.html" title="interface in noppes.npcs.api.gui">ICustomGuiComponent</a> setHoverText​(java.lang.String[] hoverTextLines)</pre>
|
|
<div class="block">Sets the hover text with multiple lines.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>hoverTextLines</code> - the hover text lines.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>this component instance.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getColor()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getColor</h4>
|
|
<pre class="methodSignature">int getColor()</pre>
|
|
<div class="block">Returns the text color.</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the color as an integer.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="setColor(int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setColor</h4>
|
|
<pre class="methodSignature"><a href="ICustomGuiComponent.html" title="interface in noppes.npcs.api.gui">ICustomGuiComponent</a> setColor​(int color)</pre>
|
|
<div class="block">Sets the text color.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>color</code> - the color.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>this component instance.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getAlpha()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getAlpha</h4>
|
|
<pre class="methodSignature">float getAlpha()</pre>
|
|
<div class="block">Returns the component's transparency (alpha).</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the alpha value.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="setAlpha(float)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setAlpha</h4>
|
|
<pre class="methodSignature">void setAlpha​(float alpha)</pre>
|
|
<div class="block">Sets the component's transparency (alpha).</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>alpha</code> - the alpha value.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getRotation()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getRotation</h4>
|
|
<pre class="methodSignature">float getRotation()</pre>
|
|
<div class="block">Returns the component's rotation.</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the rotation angle.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="setRotation(float)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setRotation</h4>
|
|
<pre class="methodSignature">void setRotation​(float rotation)</pre>
|
|
<div class="block">Sets the component's rotation.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>rotation</code> - the rotation angle.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="toNBT(net.minecraft.nbt.NBTTagCompound)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>toNBT</h4>
|
|
<pre class="methodSignature">net.minecraft.nbt.NBTTagCompound toNBT​(net.minecraft.nbt.NBTTagCompound nbt)</pre>
|
|
<div class="block">Serializes the component to an NBT compound.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>nbt</code> - the NBT compound to populate.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the NBT compound.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="fromNBT(net.minecraft.nbt.NBTTagCompound)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>fromNBT</h4>
|
|
<pre class="methodSignature"><a href="ICustomGuiComponent.html" title="interface in noppes.npcs.api.gui">ICustomGuiComponent</a> fromNBT​(net.minecraft.nbt.NBTTagCompound nbt)</pre>
|
|
<div class="block">Deserializes the component from an NBT compound.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>nbt</code> - the NBT compound.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>this component instance.</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>
|