Files
CustomNPC-Plus/docs/noppes/npcs/api/ISkinOverlay.html
2025-05-29 16:27:42 -04:00

554 lines
18 KiB
HTML

<!DOCTYPE HTML>
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (11.0.20) on Thu May 29 16:24:46 EDT 2025 -->
<title>ISkinOverlay</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2025-05-29">
<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="ISkinOverlay";
}
}
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};
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</a></div>
<h2 title="Interface ISkinOverlay" class="title">Interface ISkinOverlay</h2>
</div>
<div class="contentContainer">
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<pre>public interface <span class="typeNameLabel">ISkinOverlay</span></pre>
<div class="block">A skin overlay object for both NPCs and players. Several skin overlays at a time can be layered on top of each other.
In an NPC's case, the old overlay texture is now the skin overlay with ID 0.
Modifying these attributes, an overlay can be made to look like a powered creeper effect, just a new skin, or both!</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">&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>float</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getAlpha()">getAlpha</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getBlend()">getBlend</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getGlow()">getGlow</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>float</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getOffsetX()">getOffsetX</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>float</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getOffsetY()">getOffsetY</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>float</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getOffsetZ()">getOffsetZ</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>float</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getSize()">getSize</a></span>()</code></th>
<td class="colLast">&nbsp;</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="#getSpeedX()">getSpeedX</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>float</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getSpeedY()">getSpeedY</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i9" 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">&nbsp;</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="#getTextureScaleX()">getTextureScaleX</a></span>()</code></th>
<td class="colLast">&nbsp;</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="#getTextureScaleY()">getTextureScaleY</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setAlpha(float)">setAlpha</a></span>&#8203;(float&nbsp;alpha)</code></th>
<td class="colLast">
<div class="block">Sets the transparency of the overlay, from 0 to 1.</div>
</td>
</tr>
<tr id="i13" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setBlend(boolean)">setBlend</a></span>&#8203;(boolean&nbsp;blend)</code></th>
<td class="colLast">
<div class="block">Sets whether this overlay blends on top of bottom textures at any alpha value.</div>
</td>
</tr>
<tr id="i14" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setGlow(boolean)">setGlow</a></span>&#8203;(boolean&nbsp;glow)</code></th>
<td class="colLast">
<div class="block">Sets whether this overlay glows in the dark or not.</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="#setOffset(float,float,float)">setOffset</a></span>&#8203;(float&nbsp;offsetX,
float&nbsp;offsetY,
float&nbsp;offsetZ)</code></th>
<td class="colLast">
<div class="block">Sets the amount in each direction by which the overlay will be offset from the entity.</div>
</td>
</tr>
<tr id="i16" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setSize(float)">setSize</a></span>&#8203;(float&nbsp;size)</code></th>
<td class="colLast">
<div class="block">Sets the size of the entire overlay when rendered on the entity.</div>
</td>
</tr>
<tr id="i17" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setSpeed(float,float)">setSpeed</a></span>&#8203;(float&nbsp;speedX,
float&nbsp;speedY)</code></th>
<td class="colLast">
<div class="block">Sets the "texture speed" by which the texture shifts on each render tick.</div>
</td>
</tr>
<tr id="i18" class="altColor">
<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 directory texture of the overlay.</div>
</td>
</tr>
<tr id="i19" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setTextureScale(float,float)">setTextureScale</a></span>&#8203;(float&nbsp;scaleX,
float&nbsp;scaleY)</code></th>
<td class="colLast">
<div class="block">Sets the texture scale of the overlay.</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="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 directory texture of the overlay. Does not support URLs.</div>
</li>
</ul>
<a id="getTexture()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTexture</h4>
<pre class="methodSignature">java.lang.String&nbsp;getTexture()</pre>
</li>
</ul>
<a id="setGlow(boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setGlow</h4>
<pre class="methodSignature">void&nbsp;setGlow&#8203;(boolean&nbsp;glow)</pre>
<div class="block">Sets whether this overlay glows in the dark or not.</div>
</li>
</ul>
<a id="getGlow()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getGlow</h4>
<pre class="methodSignature">boolean&nbsp;getGlow()</pre>
</li>
</ul>
<a id="setBlend(boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setBlend</h4>
<pre class="methodSignature">void&nbsp;setBlend&#8203;(boolean&nbsp;blend)</pre>
<div class="block">Sets whether this overlay blends on top of bottom textures at any alpha value.</div>
</li>
</ul>
<a id="getBlend()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getBlend</h4>
<pre class="methodSignature">boolean&nbsp;getBlend()</pre>
</li>
</ul>
<a id="setAlpha(float)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setAlpha</h4>
<pre class="methodSignature">void&nbsp;setAlpha&#8203;(float&nbsp;alpha)</pre>
<div class="block">Sets the transparency of the overlay, from 0 to 1.</div>
</li>
</ul>
<a id="getAlpha()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getAlpha</h4>
<pre class="methodSignature">float&nbsp;getAlpha()</pre>
</li>
</ul>
<a id="setSize(float)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setSize</h4>
<pre class="methodSignature">void&nbsp;setSize&#8203;(float&nbsp;size)</pre>
<div class="block">Sets the size of the entire overlay when rendered on the entity. By default, overlays render slightly on top of
the entity's model.</div>
</li>
</ul>
<a id="getSize()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getSize</h4>
<pre class="methodSignature">float&nbsp;getSize()</pre>
</li>
</ul>
<a id="setTextureScale(float,float)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setTextureScale</h4>
<pre class="methodSignature">void&nbsp;setTextureScale&#8203;(float&nbsp;scaleX,
float&nbsp;scaleY)</pre>
<div class="block">Sets the texture scale of the overlay. Higher values will "zoom in" to the texture more.</div>
</li>
</ul>
<a id="getTextureScaleX()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTextureScaleX</h4>
<pre class="methodSignature">float&nbsp;getTextureScaleX()</pre>
</li>
</ul>
<a id="getTextureScaleY()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTextureScaleY</h4>
<pre class="methodSignature">float&nbsp;getTextureScaleY()</pre>
</li>
</ul>
<a id="setSpeed(float,float)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setSpeed</h4>
<pre class="methodSignature">void&nbsp;setSpeed&#8203;(float&nbsp;speedX,
float&nbsp;speedY)</pre>
<div class="block">Sets the "texture speed" by which the texture shifts on each render tick. Used to create a powered creeper effect!
This does not move the entire overlay, it just moves the position at which the texture begins rendering.</div>
</li>
</ul>
<a id="getSpeedX()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getSpeedX</h4>
<pre class="methodSignature">float&nbsp;getSpeedX()</pre>
</li>
</ul>
<a id="getSpeedY()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getSpeedY</h4>
<pre class="methodSignature">float&nbsp;getSpeedY()</pre>
</li>
</ul>
<a id="setOffset(float,float,float)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setOffset</h4>
<pre class="methodSignature">void&nbsp;setOffset&#8203;(float&nbsp;offsetX,
float&nbsp;offsetY,
float&nbsp;offsetZ)</pre>
<div class="block">Sets the amount in each direction by which the overlay will be offset from the entity.</div>
</li>
</ul>
<a id="getOffsetX()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getOffsetX</h4>
<pre class="methodSignature">float&nbsp;getOffsetX()</pre>
</li>
</ul>
<a id="getOffsetY()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getOffsetY</h4>
<pre class="methodSignature">float&nbsp;getOffsetY()</pre>
</li>
</ul>
<a id="getOffsetZ()">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>getOffsetZ</h4>
<pre class="methodSignature">float&nbsp;getOffsetZ()</pre>
</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>