mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-10 19:03:44 +00:00
1533 lines
54 KiB
HTML
1533 lines
54 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>IParticle</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="IParticle";
|
|
}
|
|
}
|
|
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,"i43":6,"i44":6,"i45":6,"i46":6,"i47":6,"i48":6,"i49":6,"i50":6,"i51":6,"i52":6,"i53":6,"i54":6,"i55":6,"i56":6,"i57":6,"i58":6,"i59":6,"i60":6,"i61":6,"i62":6,"i63":6,"i64":6,"i65":6,"i66":6,"i67":6,"i68":6,"i69":6,"i70":6,"i71":6,"i72":6,"i73":38,"i74":38,"i75":38};
|
|
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"],32:["t6","Deprecated 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</a></div>
|
|
<h2 title="Interface IParticle" class="title">Interface IParticle</h2>
|
|
</div>
|
|
<div class="contentContainer">
|
|
<div class="description">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<hr>
|
|
<pre>public interface <span class="typeNameLabel">IParticle</span></pre>
|
|
<div class="block">A particle that can be spawned in the world, complete with translation, scale, rotate, and color transformations.
|
|
(CNPC+ original!)
|
|
|
|
To create a particle object:
|
|
API.createParticle(directory);
|
|
Then modify its attributes as you please, and call the particle's spawn functions to see it in the world.
|
|
|
|
Spawning this particle in the world sends a hefty packet with all its data to the client. The particle is then
|
|
rendered with a custom renderer based on all the given attributes.
|
|
|
|
If a particle appears to not appear at first, try increasing its scale or changing its position. The entity it's
|
|
being spawned on or a block in the world may be blocking it.</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><span id="t6" class="tableTab"><span><a href="javascript:show(32);">Deprecated 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>float</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getAlpha1()">getAlpha1</a></span>()</code></th>
|
|
<td class="colLast"> </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="#getAlpha2()">getAlpha2</a></span>()</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i2" class="altColor">
|
|
<td class="colFirst"><code>float</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getAlphaRate()">getAlphaRate</a></span>()</code></th>
|
|
<td class="colLast"> </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="#getAlphaRateStart()">getAlphaRateStart</a></span>()</code></th>
|
|
<td class="colLast"> </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="#getAmount()">getAmount</a></span>()</code></th>
|
|
<td class="colLast"> </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="#getAnimEnd()">getAnimEnd</a></span>()</code></th>
|
|
<td class="colLast"> </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="#getAnimLoop()">getAnimLoop</a></span>()</code></th>
|
|
<td class="colLast"> </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="#getAnimRate()">getAnimRate</a></span>()</code></th>
|
|
<td class="colLast"> </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="#getAnimStart()">getAnimStart</a></span>()</code></th>
|
|
<td class="colLast"> </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="#getDirectory()">getDirectory</a></span>()</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i10" class="altColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getFacePlayer()">getFacePlayer</a></span>()</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i11" class="rowColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getGlows()">getGlows</a></span>()</code></th>
|
|
<td class="colLast"> </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="#getGravity()">getGravity</a></span>()</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i13" class="rowColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getHeight()">getHeight</a></span>()</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i14" class="altColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getHEXColor1()">getHEXColor1</a></span>()</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i15" class="rowColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getHEXColor2()">getHEXColor2</a></span>()</code></th>
|
|
<td class="colLast"> </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="#getHEXColorRate()">getHEXColorRate</a></span>()</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i17" class="rowColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getHEXColorStart()">getHEXColorStart</a></span>()</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i18" class="altColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getMaxAge()">getMaxAge</a></span>()</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i19" class="rowColor">
|
|
<td class="colFirst"><code>double</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getMotionX()">getMotionX</a></span>()</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i20" class="altColor">
|
|
<td class="colFirst"><code>double</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getMotionY()">getMotionY</a></span>()</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i21" class="rowColor">
|
|
<td class="colFirst"><code>double</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getMotionZ()">getMotionZ</a></span>()</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i22" class="altColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getNoClip()">getNoClip</a></span>()</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i23" class="rowColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getOffsetX()">getOffsetX</a></span>()</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i24" class="altColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getOffsetY()">getOffsetY</a></span>()</code></th>
|
|
<td class="colLast"> </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="#getPos()">getPos</a></span>()</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i26" class="altColor">
|
|
<td class="colFirst"><code>float</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getRotationX1()">getRotationX1</a></span>()</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i27" class="rowColor">
|
|
<td class="colFirst"><code>float</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getRotationX2()">getRotationX2</a></span>()</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i28" class="altColor">
|
|
<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"> </td>
|
|
</tr>
|
|
<tr id="i29" class="rowColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getRotationXRateStart()">getRotationXRateStart</a></span>()</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i30" class="altColor">
|
|
<td class="colFirst"><code>float</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getRotationY1()">getRotationY1</a></span>()</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i31" class="rowColor">
|
|
<td class="colFirst"><code>float</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getRotationY2()">getRotationY2</a></span>()</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i32" class="altColor">
|
|
<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"> </td>
|
|
</tr>
|
|
<tr id="i33" class="rowColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getRotationYRateStart()">getRotationYRateStart</a></span>()</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i34" class="altColor">
|
|
<td class="colFirst"><code>float</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getRotationZ1()">getRotationZ1</a></span>()</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i35" class="rowColor">
|
|
<td class="colFirst"><code>float</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getRotationZ2()">getRotationZ2</a></span>()</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i36" class="altColor">
|
|
<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"> </td>
|
|
</tr>
|
|
<tr id="i37" class="rowColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getRotationZRateStart()">getRotationZRateStart</a></span>()</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i38" class="altColor">
|
|
<td class="colFirst"><code>float</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getScaleX1()">getScaleX1</a></span>()</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i39" class="rowColor">
|
|
<td class="colFirst"><code>float</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getScaleX2()">getScaleX2</a></span>()</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i40" class="altColor">
|
|
<td class="colFirst"><code>float</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getScaleXRate()">getScaleXRate</a></span>()</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i41" class="rowColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getScaleXRateStart()">getScaleXRateStart</a></span>()</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i42" class="altColor">
|
|
<td class="colFirst"><code>float</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getScaleY1()">getScaleY1</a></span>()</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i43" class="rowColor">
|
|
<td class="colFirst"><code>float</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getScaleY2()">getScaleY2</a></span>()</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i44" class="altColor">
|
|
<td class="colFirst"><code>float</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getScaleYRate()">getScaleYRate</a></span>()</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i45" class="rowColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getScaleYRateStart()">getScaleYRateStart</a></span>()</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i46" class="altColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getWidth()">getWidth</a></span>()</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i47" class="rowColor">
|
|
<td class="colFirst"><code>double</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getX()">getX</a></span>()</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i48" class="altColor">
|
|
<td class="colFirst"><code>double</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getY()">getY</a></span>()</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i49" class="rowColor">
|
|
<td class="colFirst"><code>double</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getZ()">getZ</a></span>()</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i50" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setAlpha(float,float,float,int)">setAlpha</a></span>​(float alpha1,
|
|
float alpha2,
|
|
float alphaRate,
|
|
int alphaRateStart)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i51" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setAmount(int)">setAmount</a></span>​(int amount)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i52" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setAnim(int,boolean,int,int)">setAnim</a></span>​(int animRate,
|
|
boolean animLoop,
|
|
int animStart,
|
|
int animEnd)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Enables animation on the particle.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i53" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setDirectory(java.lang.String)">setDirectory</a></span>​(java.lang.String directory)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i54" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setFacePlayer(boolean)">setFacePlayer</a></span>​(boolean facePlayer)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i55" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setGlows(boolean)">setGlows</a></span>​(boolean glows)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i56" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setHEXColor(int,int,float,int)">setHEXColor</a></span>​(int HEXColor,
|
|
int HEXColor2,
|
|
float HEXColorRate,
|
|
int HEXColorStart)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i57" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setMaxAge(int)">setMaxAge</a></span>​(int maxAge)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i58" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setMotion(double,double,double,float)">setMotion</a></span>​(double motionX,
|
|
double motionY,
|
|
double motionZ,
|
|
float gravity)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i59" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setNoClip(boolean)">setNoClip</a></span>​(boolean noClip)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i60" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setOffset(int,int)">setOffset</a></span>​(int offsetX,
|
|
int offsetY)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">The horizontal and vertical offset of the particle's texture from the top-left, starts rendering the particle at this point.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i61" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setPosition(double,double,double)">setPosition</a></span>​(double x,
|
|
double y,
|
|
double z)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i62" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setPosition(noppes.npcs.api.IPos)">setPosition</a></span>​(<a href="IPos.html" title="interface in noppes.npcs.api">IPos</a> pos)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i63" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setRotationX(float,float,float,int)">setRotationX</a></span>​(float rotationX1,
|
|
float rotationX2,
|
|
float rotationXRate,
|
|
int rotationXRateStart)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Enables rotation about the X axis.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i64" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setRotationY(float,float,float,int)">setRotationY</a></span>​(float rotationY1,
|
|
float rotationY2,
|
|
float rotationYRate,
|
|
int rotationYRateStart)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Enables rotation about the Y axis.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i65" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setRotationZ(float,float,float,int)">setRotationZ</a></span>​(float rotationZ1,
|
|
float rotationZ2,
|
|
float rotationZRate,
|
|
int rotationZRateStart)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Enables rotation about the Y axis.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i66" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setScale(float,float,float,int)">setScale</a></span>​(float scale1,
|
|
float scale2,
|
|
float scaleRate,
|
|
int scaleRateStart)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i67" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setScaleX(float,float,float,int)">setScaleX</a></span>​(float scale1,
|
|
float scale2,
|
|
float scaleRate,
|
|
int scaleRateStart)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i68" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setScaleY(float,float,float,int)">setScaleY</a></span>​(float scale1,
|
|
float scale2,
|
|
float scaleRate,
|
|
int scaleRateStart)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i69" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setSize(int,int)">setSize</a></span>​(int width,
|
|
int height)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">The width and height of the particle's texture you want to render in pixels.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i70" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#spawn(noppes.npcs.api.entity.IEntity)">spawn</a></span>​(<a href="entity/IEntity.html" title="interface in noppes.npcs.api.entity">IEntity</a> entity)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i71" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#spawn(noppes.npcs.api.IWorld)">spawn</a></span>​(<a href="IWorld.html" title="interface in noppes.npcs.api">IWorld</a> world)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i72" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#spawn(noppes.npcs.api.IWorld,double,double,double)">spawn</a></span>​(<a href="IWorld.html" title="interface in noppes.npcs.api">IWorld</a> world,
|
|
double x,
|
|
double y,
|
|
double z)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i73" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#spawnInWorld(noppes.npcs.api.IWorld)">spawnInWorld</a></span>​(<a href="IWorld.html" title="interface in noppes.npcs.api">IWorld</a> world)</code></th>
|
|
<td class="colLast">
|
|
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i74" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#spawnInWorld(noppes.npcs.api.IWorld,double,double,double)">spawnInWorld</a></span>​(<a href="IWorld.html" title="interface in noppes.npcs.api">IWorld</a> world,
|
|
double x,
|
|
double y,
|
|
double z)</code></th>
|
|
<td class="colLast">
|
|
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i75" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#spawnOnEntity(noppes.npcs.api.entity.IEntity)">spawnOnEntity</a></span>​(<a href="entity/IEntity.html" title="interface in noppes.npcs.api.entity">IEntity</a> entity)</code></th>
|
|
<td class="colLast">
|
|
<div class="block"><span class="deprecatedLabel">Deprecated.</span></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="spawn(noppes.npcs.api.entity.IEntity)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>spawn</h4>
|
|
<pre class="methodSignature">void spawn​(<a href="entity/IEntity.html" title="interface in noppes.npcs.api.entity">IEntity</a> entity)</pre>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>entity</code> - Spawns this particle object on the given entity. When spawned this way, the particle will always have its origin at the entity.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="spawn(noppes.npcs.api.IWorld)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>spawn</h4>
|
|
<pre class="methodSignature">void spawn​(<a href="IWorld.html" title="interface in noppes.npcs.api">IWorld</a> world)</pre>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>world</code> - Spawns the particle in the given world, at a position corresponding to this particle's position variables.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="spawn(noppes.npcs.api.IWorld,double,double,double)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>spawn</h4>
|
|
<pre class="methodSignature">void spawn​(<a href="IWorld.html" title="interface in noppes.npcs.api">IWorld</a> world,
|
|
double x,
|
|
double y,
|
|
double z)</pre>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>world</code> - Spawns the particle in the given world, at a position determined by the input parameters.</dd>
|
|
<dd><code>x</code> - The X position the particle will spawn in the world.</dd>
|
|
<dd><code>y</code> - The Y position the particle will spawn in the world.</dd>
|
|
<dd><code>z</code> - The Z position the particle will spawn in the world.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="spawnOnEntity(noppes.npcs.api.entity.IEntity)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>spawnOnEntity</h4>
|
|
<pre class="methodSignature">@Deprecated
|
|
void spawnOnEntity​(<a href="entity/IEntity.html" title="interface in noppes.npcs.api.entity">IEntity</a> entity)</pre>
|
|
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
|
|
</li>
|
|
</ul>
|
|
<a id="spawnInWorld(noppes.npcs.api.IWorld)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>spawnInWorld</h4>
|
|
<pre class="methodSignature">@Deprecated
|
|
void spawnInWorld​(<a href="IWorld.html" title="interface in noppes.npcs.api">IWorld</a> world)</pre>
|
|
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
|
|
</li>
|
|
</ul>
|
|
<a id="spawnInWorld(noppes.npcs.api.IWorld,double,double,double)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>spawnInWorld</h4>
|
|
<pre class="methodSignature">@Deprecated
|
|
void spawnInWorld​(<a href="IWorld.html" title="interface in noppes.npcs.api">IWorld</a> world,
|
|
double x,
|
|
double y,
|
|
double z)</pre>
|
|
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
|
|
</li>
|
|
</ul>
|
|
<a id="setGlows(boolean)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setGlows</h4>
|
|
<pre class="methodSignature">void setGlows​(boolean glows)</pre>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>glows</code> - If true, this particle ignores all lighting and always renders with full brightness.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getGlows()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getGlows</h4>
|
|
<pre class="methodSignature">boolean getGlows()</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="setNoClip(boolean)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setNoClip</h4>
|
|
<pre class="methodSignature">void setNoClip​(boolean noClip)</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="getNoClip()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getNoClip</h4>
|
|
<pre class="methodSignature">boolean getNoClip()</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="setFacePlayer(boolean)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setFacePlayer</h4>
|
|
<pre class="methodSignature">void setFacePlayer​(boolean facePlayer)</pre>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>facePlayer</code> - Whether the particle is always facing the player's camera. If this is disabled, the particle will appear to be laying flat face down on the ground if its rotation is unchanged.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getFacePlayer()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getFacePlayer</h4>
|
|
<pre class="methodSignature">boolean getFacePlayer()</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="setDirectory(java.lang.String)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setDirectory</h4>
|
|
<pre class="methodSignature">void setDirectory​(java.lang.String directory)</pre>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>directory</code> - The directory of this particle's texture. This can be any texture in a resource pack or mod, and even a URL!</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getDirectory()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getDirectory</h4>
|
|
<pre class="methodSignature">java.lang.String getDirectory()</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="setAmount(int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setAmount</h4>
|
|
<pre class="methodSignature">void setAmount​(int amount)</pre>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>amount</code> - The amount of multiples of this particle to spawn in the world. Not too good looking if used, but has some edge cases where it's alright.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getAmount()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getAmount</h4>
|
|
<pre class="methodSignature">int getAmount()</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="setMaxAge(int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setMaxAge</h4>
|
|
<pre class="methodSignature">void setMaxAge​(int maxAge)</pre>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>maxAge</code> - The maximum age this particle will be around for, in MC ticks.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getMaxAge()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getMaxAge</h4>
|
|
<pre class="methodSignature">int getMaxAge()</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="setSize(int,int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setSize</h4>
|
|
<pre class="methodSignature">void setSize​(int width,
|
|
int height)</pre>
|
|
<div class="block">The width and height of the particle's texture you want to render in pixels. Anything more gets cut off.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>width</code> - The width of the particle's texture, in pixels.</dd>
|
|
<dd><code>height</code> - The height of the particle's texture, in pixels.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getWidth()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getWidth</h4>
|
|
<pre class="methodSignature">int getWidth()</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="getHeight()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getHeight</h4>
|
|
<pre class="methodSignature">int getHeight()</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="setOffset(int,int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setOffset</h4>
|
|
<pre class="methodSignature">void setOffset​(int offsetX,
|
|
int offsetY)</pre>
|
|
<div class="block">The horizontal and vertical offset of the particle's texture from the top-left, starts rendering the particle at this point.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>offsetX</code> - The horizontal offset, in pixels (u).</dd>
|
|
<dd><code>offsetY</code> - The vertical offset, in pixels (v).</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getOffsetX()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getOffsetX</h4>
|
|
<pre class="methodSignature">int getOffsetX()</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="getOffsetY()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getOffsetY</h4>
|
|
<pre class="methodSignature">int getOffsetY()</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="setAnim(int,boolean,int,int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setAnim</h4>
|
|
<pre class="methodSignature">void setAnim​(int animRate,
|
|
boolean animLoop,
|
|
int animStart,
|
|
int animEnd)</pre>
|
|
<div class="block">Enables animation on the particle. Must set a custom width and height first using the setSize(width,height) function.
|
|
Every frame of animation the particle goes through should be saved on a single image file.
|
|
|
|
The renderer will read the frames of animation based on the given width and height of the particle, starting from the given X & Y offsets.
|
|
The renderer then goes rightwards (width) pixels for every frame. Once it can't go rightwards anymore,
|
|
the animation goes down (height) pixels, and once again keeps going rightwards if it has to.
|
|
|
|
If the animation loops, once there is nowhere downward to go, the animation will start over at the X & Y offset.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>animRate</code> - The frame rate of the particle's animation, in MC ticks. (20 ticks = 1 second)</dd>
|
|
<dd><code>animLoop</code> - Whether the animation loops or not.</dd>
|
|
<dd><code>animStart</code> - The amount of ticks before the particle starts animating.</dd>
|
|
<dd><code>animEnd</code> - The amount of ticks the particle is around for before it stops animating.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getAnimRate()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getAnimRate</h4>
|
|
<pre class="methodSignature">int getAnimRate()</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="getAnimLoop()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getAnimLoop</h4>
|
|
<pre class="methodSignature">boolean getAnimLoop()</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="getAnimStart()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getAnimStart</h4>
|
|
<pre class="methodSignature">int getAnimStart()</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="getAnimEnd()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getAnimEnd</h4>
|
|
<pre class="methodSignature">int getAnimEnd()</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="setPosition(double,double,double)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setPosition</h4>
|
|
<pre class="methodSignature">void setPosition​(double x,
|
|
double y,
|
|
double z)</pre>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>x</code> - The X position from the particle's origin the particle will spawn at.</dd>
|
|
<dd><code>y</code> - The Y position from the particle's origin the particle will spawn at.</dd>
|
|
<dd><code>z</code> - The Z position from the particle's origin the particle will spawn at.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getX()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getX</h4>
|
|
<pre class="methodSignature">double getX()</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="getY()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getY</h4>
|
|
<pre class="methodSignature">double getY()</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="getZ()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getZ</h4>
|
|
<pre class="methodSignature">double getZ()</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="setPosition(noppes.npcs.api.IPos)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setPosition</h4>
|
|
<pre class="methodSignature">void setPosition​(<a href="IPos.html" title="interface in noppes.npcs.api">IPos</a> pos)</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="getPos()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getPos</h4>
|
|
<pre class="methodSignature">void getPos()</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="setMotion(double,double,double,float)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setMotion</h4>
|
|
<pre class="methodSignature">void setMotion​(double motionX,
|
|
double motionY,
|
|
double motionZ,
|
|
float gravity)</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="getMotionX()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getMotionX</h4>
|
|
<pre class="methodSignature">double getMotionX()</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="getMotionY()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getMotionY</h4>
|
|
<pre class="methodSignature">double getMotionY()</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="getMotionZ()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getMotionZ</h4>
|
|
<pre class="methodSignature">double getMotionZ()</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="getGravity()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getGravity</h4>
|
|
<pre class="methodSignature">float getGravity()</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="setHEXColor(int,int,float,int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setHEXColor</h4>
|
|
<pre class="methodSignature">void setHEXColor​(int HEXColor,
|
|
int HEXColor2,
|
|
float HEXColorRate,
|
|
int HEXColorStart)</pre>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>HEXColor</code> - The starting HEX color of the particle.</dd>
|
|
<dd><code>HEXColor2</code> - The ending HEX color of the particle.</dd>
|
|
<dd><code>HEXColorRate</code> - The rate of interpolation between the two HEX colors.</dd>
|
|
<dd><code>HEXColorStart</code> - The amount of ticks the particle is around for before its colors begin interpolating between HEXColor and HEXColor2.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getHEXColor1()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getHEXColor1</h4>
|
|
<pre class="methodSignature">int getHEXColor1()</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="getHEXColor2()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getHEXColor2</h4>
|
|
<pre class="methodSignature">int getHEXColor2()</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="getHEXColorRate()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getHEXColorRate</h4>
|
|
<pre class="methodSignature">float getHEXColorRate()</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="getHEXColorStart()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getHEXColorStart</h4>
|
|
<pre class="methodSignature">int getHEXColorStart()</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="setAlpha(float,float,float,int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setAlpha</h4>
|
|
<pre class="methodSignature">void setAlpha​(float alpha1,
|
|
float alpha2,
|
|
float alphaRate,
|
|
int alphaRateStart)</pre>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>alpha1</code> - The starting transparency of the particle.</dd>
|
|
<dd><code>alpha2</code> - The ending transparency of the particle.</dd>
|
|
<dd><code>alphaRate</code> - The rate of interpolation between the two transparency values.</dd>
|
|
<dd><code>alphaRateStart</code> - The amount of ticks the particle is around for before its colors begin interpolating between alpha1 and alpha2.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getAlpha1()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getAlpha1</h4>
|
|
<pre class="methodSignature">float getAlpha1()</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="getAlpha2()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getAlpha2</h4>
|
|
<pre class="methodSignature">float getAlpha2()</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="getAlphaRate()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getAlphaRate</h4>
|
|
<pre class="methodSignature">float getAlphaRate()</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="getAlphaRateStart()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getAlphaRateStart</h4>
|
|
<pre class="methodSignature">int getAlphaRateStart()</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="setScale(float,float,float,int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setScale</h4>
|
|
<pre class="methodSignature">void setScale​(float scale1,
|
|
float scale2,
|
|
float scaleRate,
|
|
int scaleRateStart)</pre>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>scale1</code> - The starting scale/size of the particle.</dd>
|
|
<dd><code>scale2</code> - The ending scale/size of the particle.</dd>
|
|
<dd><code>scaleRate</code> - The rate of interpolation between the two scale values.</dd>
|
|
<dd><code>scaleRateStart</code> - The amount of ticks the particle is around for before its colors begin interpolating between scale1 and scale2.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="setScaleX(float,float,float,int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setScaleX</h4>
|
|
<pre class="methodSignature">void setScaleX​(float scale1,
|
|
float scale2,
|
|
float scaleRate,
|
|
int scaleRateStart)</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="getScaleX1()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getScaleX1</h4>
|
|
<pre class="methodSignature">float getScaleX1()</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="getScaleX2()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getScaleX2</h4>
|
|
<pre class="methodSignature">float getScaleX2()</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="getScaleXRate()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getScaleXRate</h4>
|
|
<pre class="methodSignature">float getScaleXRate()</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="getScaleXRateStart()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getScaleXRateStart</h4>
|
|
<pre class="methodSignature">int getScaleXRateStart()</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="setScaleY(float,float,float,int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setScaleY</h4>
|
|
<pre class="methodSignature">void setScaleY​(float scale1,
|
|
float scale2,
|
|
float scaleRate,
|
|
int scaleRateStart)</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="getScaleY1()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getScaleY1</h4>
|
|
<pre class="methodSignature">float getScaleY1()</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="getScaleY2()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getScaleY2</h4>
|
|
<pre class="methodSignature">float getScaleY2()</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="getScaleYRate()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getScaleYRate</h4>
|
|
<pre class="methodSignature">float getScaleYRate()</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="getScaleYRateStart()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getScaleYRateStart</h4>
|
|
<pre class="methodSignature">int getScaleYRateStart()</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="setRotationX(float,float,float,int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setRotationX</h4>
|
|
<pre class="methodSignature">void setRotationX​(float rotationX1,
|
|
float rotationX2,
|
|
float rotationXRate,
|
|
int rotationXRateStart)</pre>
|
|
<div class="block">Enables rotation about the X axis.
|
|
If the particle is set to always face the player, this axis is a constant horizontal line on the player's camera.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>rotationX1</code> - The starting X rotation of the particle.</dd>
|
|
<dd><code>rotationX2</code> - The ending X rotation of the particle.</dd>
|
|
<dd><code>rotationXRate</code> - The rate of interpolation between the two X rotation values.</dd>
|
|
<dd><code>rotationXRateStart</code> - The amount of ticks the particle is around for before its colors begin interpolating between rotationX1 and rotationX2.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getRotationX1()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getRotationX1</h4>
|
|
<pre class="methodSignature">float getRotationX1()</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="getRotationX2()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getRotationX2</h4>
|
|
<pre class="methodSignature">float getRotationX2()</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="getRotationXRate()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getRotationXRate</h4>
|
|
<pre class="methodSignature">float getRotationXRate()</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="getRotationXRateStart()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getRotationXRateStart</h4>
|
|
<pre class="methodSignature">int getRotationXRateStart()</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="setRotationY(float,float,float,int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setRotationY</h4>
|
|
<pre class="methodSignature">void setRotationY​(float rotationY1,
|
|
float rotationY2,
|
|
float rotationYRate,
|
|
int rotationYRateStart)</pre>
|
|
<div class="block">Enables rotation about the Y axis.
|
|
If the particle is set to always face the player, this axis is a constant vertical line on the player's camera.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>rotationY1</code> - The starting Y rotation of the particle.</dd>
|
|
<dd><code>rotationY2</code> - The ending Y rotation of the particle.</dd>
|
|
<dd><code>rotationYRate</code> - The rate of interpolation between the two Y rotation values.</dd>
|
|
<dd><code>rotationYRateStart</code> - The amount of ticks the particle is around for before its colors begin interpolating between rotationY1 and rotationY2.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getRotationY1()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getRotationY1</h4>
|
|
<pre class="methodSignature">float getRotationY1()</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="getRotationY2()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getRotationY2</h4>
|
|
<pre class="methodSignature">float getRotationY2()</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="getRotationYRate()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getRotationYRate</h4>
|
|
<pre class="methodSignature">float getRotationYRate()</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="getRotationYRateStart()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getRotationYRateStart</h4>
|
|
<pre class="methodSignature">int getRotationYRateStart()</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="setRotationZ(float,float,float,int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setRotationZ</h4>
|
|
<pre class="methodSignature">void setRotationZ​(float rotationZ1,
|
|
float rotationZ2,
|
|
float rotationZRate,
|
|
int rotationZRateStart)</pre>
|
|
<div class="block">Enables rotation about the Y axis.
|
|
If the particle is set to always face the player, this axis is a constant line going into the player's camera.
|
|
You'll be using this one most often if the particle is set to face the player.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>rotationZ1</code> - The starting Z rotation of the particle.</dd>
|
|
<dd><code>rotationZ2</code> - The ending Z rotation of the particle.</dd>
|
|
<dd><code>rotationZRate</code> - The rate of interpolation between the two Z rotation values.</dd>
|
|
<dd><code>rotationZRateStart</code> - The amount of ticks the particle is around for before its colors begin interpolating between rotationZ1 and rotationZ2.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getRotationZ1()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getRotationZ1</h4>
|
|
<pre class="methodSignature">float getRotationZ1()</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="getRotationZ2()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getRotationZ2</h4>
|
|
<pre class="methodSignature">float getRotationZ2()</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="getRotationZRate()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getRotationZRate</h4>
|
|
<pre class="methodSignature">float getRotationZRate()</pre>
|
|
</li>
|
|
</ul>
|
|
<a id="getRotationZRateStart()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>getRotationZRateStart</h4>
|
|
<pre class="methodSignature">int getRotationZRateStart()</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 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>
|