mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 09:37:29 +00:00
1338 lines
49 KiB
HTML
1338 lines
49 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
<!-- NewPage -->
|
|
<html lang="en">
|
|
<head>
|
|
<!-- Generated by javadoc (1.8.0_331) on Thu Nov 24 22:55:34 CST 2022 -->
|
|
<title>IParticle</title>
|
|
<meta name="date" content="2022-11-24">
|
|
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
|
|
<script type="text/javascript" src="../../../script.js"></script>
|
|
</head>
|
|
<body>
|
|
<script type="text/javascript"><!--
|
|
try {
|
|
if (location.href.indexOf('is-external=true') == -1) {
|
|
parent.document.title="IParticle";
|
|
}
|
|
}
|
|
catch(err) {
|
|
}
|
|
//-->
|
|
var methods = {"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":38,"i68":38,"i69":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";
|
|
</script>
|
|
<noscript>
|
|
<div>JavaScript is disabled on your browser.</div>
|
|
</noscript>
|
|
<!-- ========= START OF TOP NAVBAR ======= -->
|
|
<div class="topNav"><a name="navbar.top">
|
|
<!-- -->
|
|
</a>
|
|
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
|
|
<a name="navbar.top.firstrow">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="navList" title="Navigation">
|
|
<li><a href="../../../overview-summary.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">
|
|
<li><a href="../../../noppes/npcs/api/INbt.html" title="interface in noppes.npcs.api"><span class="typeNameLink">Prev Class</span></a></li>
|
|
<li><a href="../../../noppes/npcs/api/IPixelmonPlayerData.html" title="interface in noppes.npcs.api"><span class="typeNameLink">Next Class</span></a></li>
|
|
</ul>
|
|
<ul class="navList">
|
|
<li><a href="../../../index.html?noppes/npcs/api/IParticle.html" target="_top">Frames</a></li>
|
|
<li><a href="IParticle.html" target="_top">No Frames</a></li>
|
|
</ul>
|
|
<ul class="navList" id="allclasses_navbar_top">
|
|
<li><a href="../../../allclasses-noframe.html">All Classes</a></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>
|
|
</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 name="skip.navbar.top">
|
|
<!-- -->
|
|
</a></div>
|
|
<!-- ========= END OF TOP NAVBAR ========= -->
|
|
<!-- ======== START OF CLASS DATA ======== -->
|
|
<div class="header">
|
|
<div class="subTitle">noppes.npcs.api</div>
|
|
<h2 title="Interface IParticle" class="title">Interface IParticle</h2>
|
|
</div>
|
|
<div class="contentContainer">
|
|
<div class="description">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<hr>
|
|
<br>
|
|
<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 =========== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="method.summary">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Method Summary</h3>
|
|
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
|
|
<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="colLast" scope="col">Method and Description</th>
|
|
</tr>
|
|
<tr id="i0" class="altColor">
|
|
<td class="colFirst"><code>float</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../noppes/npcs/api/IParticle.html#getAlpha1--">getAlpha1</a></span>()</code> </td>
|
|
</tr>
|
|
<tr id="i1" class="rowColor">
|
|
<td class="colFirst"><code>float</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../noppes/npcs/api/IParticle.html#getAlpha2--">getAlpha2</a></span>()</code> </td>
|
|
</tr>
|
|
<tr id="i2" class="altColor">
|
|
<td class="colFirst"><code>float</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../noppes/npcs/api/IParticle.html#getAlphaRate--">getAlphaRate</a></span>()</code> </td>
|
|
</tr>
|
|
<tr id="i3" class="rowColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../noppes/npcs/api/IParticle.html#getAlphaRateStart--">getAlphaRateStart</a></span>()</code> </td>
|
|
</tr>
|
|
<tr id="i4" class="altColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../noppes/npcs/api/IParticle.html#getAmount--">getAmount</a></span>()</code> </td>
|
|
</tr>
|
|
<tr id="i5" class="rowColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../noppes/npcs/api/IParticle.html#getAnimEnd--">getAnimEnd</a></span>()</code> </td>
|
|
</tr>
|
|
<tr id="i6" class="altColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../noppes/npcs/api/IParticle.html#getAnimLoop--">getAnimLoop</a></span>()</code> </td>
|
|
</tr>
|
|
<tr id="i7" class="rowColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../noppes/npcs/api/IParticle.html#getAnimRate--">getAnimRate</a></span>()</code> </td>
|
|
</tr>
|
|
<tr id="i8" class="altColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../noppes/npcs/api/IParticle.html#getAnimStart--">getAnimStart</a></span>()</code> </td>
|
|
</tr>
|
|
<tr id="i9" class="rowColor">
|
|
<td class="colFirst"><code>java.lang.String</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../noppes/npcs/api/IParticle.html#getDirectory--">getDirectory</a></span>()</code> </td>
|
|
</tr>
|
|
<tr id="i10" class="altColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../noppes/npcs/api/IParticle.html#getFacePlayer--">getFacePlayer</a></span>()</code> </td>
|
|
</tr>
|
|
<tr id="i11" class="rowColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../noppes/npcs/api/IParticle.html#getGlows--">getGlows</a></span>()</code> </td>
|
|
</tr>
|
|
<tr id="i12" class="altColor">
|
|
<td class="colFirst"><code>float</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../noppes/npcs/api/IParticle.html#getGravity--">getGravity</a></span>()</code> </td>
|
|
</tr>
|
|
<tr id="i13" class="rowColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../noppes/npcs/api/IParticle.html#getHeight--">getHeight</a></span>()</code> </td>
|
|
</tr>
|
|
<tr id="i14" class="altColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../noppes/npcs/api/IParticle.html#getHEXColor1--">getHEXColor1</a></span>()</code> </td>
|
|
</tr>
|
|
<tr id="i15" class="rowColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../noppes/npcs/api/IParticle.html#getHEXColor2--">getHEXColor2</a></span>()</code> </td>
|
|
</tr>
|
|
<tr id="i16" class="altColor">
|
|
<td class="colFirst"><code>float</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../noppes/npcs/api/IParticle.html#getHEXColorRate--">getHEXColorRate</a></span>()</code> </td>
|
|
</tr>
|
|
<tr id="i17" class="rowColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../noppes/npcs/api/IParticle.html#getHEXColorStart--">getHEXColorStart</a></span>()</code> </td>
|
|
</tr>
|
|
<tr id="i18" class="altColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../noppes/npcs/api/IParticle.html#getMaxAge--">getMaxAge</a></span>()</code> </td>
|
|
</tr>
|
|
<tr id="i19" class="rowColor">
|
|
<td class="colFirst"><code>double</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../noppes/npcs/api/IParticle.html#getMotionX--">getMotionX</a></span>()</code> </td>
|
|
</tr>
|
|
<tr id="i20" class="altColor">
|
|
<td class="colFirst"><code>double</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../noppes/npcs/api/IParticle.html#getMotionY--">getMotionY</a></span>()</code> </td>
|
|
</tr>
|
|
<tr id="i21" class="rowColor">
|
|
<td class="colFirst"><code>double</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../noppes/npcs/api/IParticle.html#getMotionZ--">getMotionZ</a></span>()</code> </td>
|
|
</tr>
|
|
<tr id="i22" class="altColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../noppes/npcs/api/IParticle.html#getNoClip--">getNoClip</a></span>()</code> </td>
|
|
</tr>
|
|
<tr id="i23" class="rowColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../noppes/npcs/api/IParticle.html#getOffsetX--">getOffsetX</a></span>()</code> </td>
|
|
</tr>
|
|
<tr id="i24" class="altColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../noppes/npcs/api/IParticle.html#getOffsetY--">getOffsetY</a></span>()</code> </td>
|
|
</tr>
|
|
<tr id="i25" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../noppes/npcs/api/IParticle.html#getPos--">getPos</a></span>()</code> </td>
|
|
</tr>
|
|
<tr id="i26" class="altColor">
|
|
<td class="colFirst"><code>float</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../noppes/npcs/api/IParticle.html#getRotationX1--">getRotationX1</a></span>()</code> </td>
|
|
</tr>
|
|
<tr id="i27" class="rowColor">
|
|
<td class="colFirst"><code>float</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../noppes/npcs/api/IParticle.html#getRotationX2--">getRotationX2</a></span>()</code> </td>
|
|
</tr>
|
|
<tr id="i28" class="altColor">
|
|
<td class="colFirst"><code>float</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../noppes/npcs/api/IParticle.html#getRotationXRate--">getRotationXRate</a></span>()</code> </td>
|
|
</tr>
|
|
<tr id="i29" class="rowColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../noppes/npcs/api/IParticle.html#getRotationXRateStart--">getRotationXRateStart</a></span>()</code> </td>
|
|
</tr>
|
|
<tr id="i30" class="altColor">
|
|
<td class="colFirst"><code>float</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../noppes/npcs/api/IParticle.html#getRotationY1--">getRotationY1</a></span>()</code> </td>
|
|
</tr>
|
|
<tr id="i31" class="rowColor">
|
|
<td class="colFirst"><code>float</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../noppes/npcs/api/IParticle.html#getRotationY2--">getRotationY2</a></span>()</code> </td>
|
|
</tr>
|
|
<tr id="i32" class="altColor">
|
|
<td class="colFirst"><code>float</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../noppes/npcs/api/IParticle.html#getRotationYRate--">getRotationYRate</a></span>()</code> </td>
|
|
</tr>
|
|
<tr id="i33" class="rowColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../noppes/npcs/api/IParticle.html#getRotationYRateStart--">getRotationYRateStart</a></span>()</code> </td>
|
|
</tr>
|
|
<tr id="i34" class="altColor">
|
|
<td class="colFirst"><code>float</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../noppes/npcs/api/IParticle.html#getRotationZ1--">getRotationZ1</a></span>()</code> </td>
|
|
</tr>
|
|
<tr id="i35" class="rowColor">
|
|
<td class="colFirst"><code>float</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../noppes/npcs/api/IParticle.html#getRotationZ2--">getRotationZ2</a></span>()</code> </td>
|
|
</tr>
|
|
<tr id="i36" class="altColor">
|
|
<td class="colFirst"><code>float</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../noppes/npcs/api/IParticle.html#getRotationZRate--">getRotationZRate</a></span>()</code> </td>
|
|
</tr>
|
|
<tr id="i37" class="rowColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../noppes/npcs/api/IParticle.html#getRotationZRateStart--">getRotationZRateStart</a></span>()</code> </td>
|
|
</tr>
|
|
<tr id="i38" class="altColor">
|
|
<td class="colFirst"><code>float</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../noppes/npcs/api/IParticle.html#getScale1--">getScale1</a></span>()</code> </td>
|
|
</tr>
|
|
<tr id="i39" class="rowColor">
|
|
<td class="colFirst"><code>float</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../noppes/npcs/api/IParticle.html#getScale2--">getScale2</a></span>()</code> </td>
|
|
</tr>
|
|
<tr id="i40" class="altColor">
|
|
<td class="colFirst"><code>float</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../noppes/npcs/api/IParticle.html#getScaleRate--">getScaleRate</a></span>()</code> </td>
|
|
</tr>
|
|
<tr id="i41" class="rowColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../noppes/npcs/api/IParticle.html#getScaleRateStart--">getScaleRateStart</a></span>()</code> </td>
|
|
</tr>
|
|
<tr id="i42" class="altColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../noppes/npcs/api/IParticle.html#getWidth--">getWidth</a></span>()</code> </td>
|
|
</tr>
|
|
<tr id="i43" class="rowColor">
|
|
<td class="colFirst"><code>double</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../noppes/npcs/api/IParticle.html#getX--">getX</a></span>()</code> </td>
|
|
</tr>
|
|
<tr id="i44" class="altColor">
|
|
<td class="colFirst"><code>double</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../noppes/npcs/api/IParticle.html#getY--">getY</a></span>()</code> </td>
|
|
</tr>
|
|
<tr id="i45" class="rowColor">
|
|
<td class="colFirst"><code>double</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../noppes/npcs/api/IParticle.html#getZ--">getZ</a></span>()</code> </td>
|
|
</tr>
|
|
<tr id="i46" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../noppes/npcs/api/IParticle.html#setAlpha-float-float-float-int-">setAlpha</a></span>(float alpha1,
|
|
float alpha2,
|
|
float alphaRate,
|
|
int alphaRateStart)</code> </td>
|
|
</tr>
|
|
<tr id="i47" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../noppes/npcs/api/IParticle.html#setAmount-int-">setAmount</a></span>(int amount)</code> </td>
|
|
</tr>
|
|
<tr id="i48" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../noppes/npcs/api/IParticle.html#setAnim-int-boolean-int-int-">setAnim</a></span>(int animRate,
|
|
boolean animLoop,
|
|
int animStart,
|
|
int animEnd)</code>
|
|
<div class="block">Enables animation on the particle.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i49" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../noppes/npcs/api/IParticle.html#setDirectory-java.lang.String-">setDirectory</a></span>(java.lang.String directory)</code> </td>
|
|
</tr>
|
|
<tr id="i50" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../noppes/npcs/api/IParticle.html#setFacePlayer-boolean-">setFacePlayer</a></span>(boolean facePlayer)</code> </td>
|
|
</tr>
|
|
<tr id="i51" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../noppes/npcs/api/IParticle.html#setGlows-boolean-">setGlows</a></span>(boolean glows)</code> </td>
|
|
</tr>
|
|
<tr id="i52" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../noppes/npcs/api/IParticle.html#setHEXColor-int-int-float-int-">setHEXColor</a></span>(int HEXColor,
|
|
int HEXColor2,
|
|
float HEXColorRate,
|
|
int HEXColorStart)</code> </td>
|
|
</tr>
|
|
<tr id="i53" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../noppes/npcs/api/IParticle.html#setMaxAge-int-">setMaxAge</a></span>(int maxAge)</code> </td>
|
|
</tr>
|
|
<tr id="i54" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../noppes/npcs/api/IParticle.html#setMotion-double-double-double-float-">setMotion</a></span>(double motionX,
|
|
double motionY,
|
|
double motionZ,
|
|
float gravity)</code> </td>
|
|
</tr>
|
|
<tr id="i55" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../noppes/npcs/api/IParticle.html#setNoClip-boolean-">setNoClip</a></span>(boolean noClip)</code> </td>
|
|
</tr>
|
|
<tr id="i56" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../noppes/npcs/api/IParticle.html#setOffset-int-int-">setOffset</a></span>(int offsetX,
|
|
int offsetY)</code>
|
|
<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="i57" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../noppes/npcs/api/IParticle.html#setPosition-double-double-double-">setPosition</a></span>(double x,
|
|
double y,
|
|
double z)</code> </td>
|
|
</tr>
|
|
<tr id="i58" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../noppes/npcs/api/IParticle.html#setPosition-noppes.npcs.api.IPos-">setPosition</a></span>(<a href="../../../noppes/npcs/api/IPos.html" title="interface in noppes.npcs.api">IPos</a> pos)</code> </td>
|
|
</tr>
|
|
<tr id="i59" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../noppes/npcs/api/IParticle.html#setRotationX-float-float-float-int-">setRotationX</a></span>(float rotationX1,
|
|
float rotationX2,
|
|
float rotationXRate,
|
|
int rotationXRateStart)</code>
|
|
<div class="block">Enables rotation about the X axis.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i60" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../noppes/npcs/api/IParticle.html#setRotationY-float-float-float-int-">setRotationY</a></span>(float rotationY1,
|
|
float rotationY2,
|
|
float rotationYRate,
|
|
int rotationYRateStart)</code>
|
|
<div class="block">Enables rotation about the Y axis.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i61" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../noppes/npcs/api/IParticle.html#setRotationZ-float-float-float-int-">setRotationZ</a></span>(float rotationZ1,
|
|
float rotationZ2,
|
|
float rotationZRate,
|
|
int rotationZRateStart)</code>
|
|
<div class="block">Enables rotation about the Y axis.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i62" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../noppes/npcs/api/IParticle.html#setScale-float-float-float-int-">setScale</a></span>(float scale1,
|
|
float scale2,
|
|
float scaleRate,
|
|
int scaleRateStart)</code> </td>
|
|
</tr>
|
|
<tr id="i63" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../noppes/npcs/api/IParticle.html#setSize-int-int-">setSize</a></span>(int width,
|
|
int height)</code>
|
|
<div class="block">The width and height of the particle's texture you want to render in pixels.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i64" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../noppes/npcs/api/IParticle.html#spawn-noppes.npcs.api.entity.IEntity-">spawn</a></span>(<a href="../../../noppes/npcs/api/entity/IEntity.html" title="interface in noppes.npcs.api.entity">IEntity</a> entity)</code> </td>
|
|
</tr>
|
|
<tr id="i65" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../noppes/npcs/api/IParticle.html#spawn-noppes.npcs.api.IWorld-">spawn</a></span>(<a href="../../../noppes/npcs/api/IWorld.html" title="interface in noppes.npcs.api">IWorld</a> world)</code> </td>
|
|
</tr>
|
|
<tr id="i66" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../noppes/npcs/api/IParticle.html#spawn-noppes.npcs.api.IWorld-double-double-double-">spawn</a></span>(<a href="../../../noppes/npcs/api/IWorld.html" title="interface in noppes.npcs.api">IWorld</a> world,
|
|
double x,
|
|
double y,
|
|
double z)</code> </td>
|
|
</tr>
|
|
<tr id="i67" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../noppes/npcs/api/IParticle.html#spawnInWorld-noppes.npcs.api.IWorld-">spawnInWorld</a></span>(<a href="../../../noppes/npcs/api/IWorld.html" title="interface in noppes.npcs.api">IWorld</a> world)</code>
|
|
<div class="block"><span class="deprecatedLabel">Deprecated.</span> </div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i68" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../noppes/npcs/api/IParticle.html#spawnInWorld-noppes.npcs.api.IWorld-double-double-double-">spawnInWorld</a></span>(<a href="../../../noppes/npcs/api/IWorld.html" title="interface in noppes.npcs.api">IWorld</a> world,
|
|
double x,
|
|
double y,
|
|
double z)</code>
|
|
<div class="block"><span class="deprecatedLabel">Deprecated.</span> </div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i69" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../noppes/npcs/api/IParticle.html#spawnOnEntity-noppes.npcs.api.entity.IEntity-">spawnOnEntity</a></span>(<a href="../../../noppes/npcs/api/entity/IEntity.html" title="interface in noppes.npcs.api.entity">IEntity</a> entity)</code>
|
|
<div class="block"><span class="deprecatedLabel">Deprecated.</span> </div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="details">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<!-- ============ METHOD DETAIL ========== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="method.detail">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Method Detail</h3>
|
|
<a name="spawn-noppes.npcs.api.entity.IEntity-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>spawn</h4>
|
|
<pre>void spawn(<a href="../../../noppes/npcs/api/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 name="spawn-noppes.npcs.api.IWorld-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>spawn</h4>
|
|
<pre>void spawn(<a href="../../../noppes/npcs/api/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 name="spawn-noppes.npcs.api.IWorld-double-double-double-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>spawn</h4>
|
|
<pre>void spawn(<a href="../../../noppes/npcs/api/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 name="spawnOnEntity-noppes.npcs.api.entity.IEntity-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>spawnOnEntity</h4>
|
|
<pre>@Deprecated
|
|
void spawnOnEntity(<a href="../../../noppes/npcs/api/entity/IEntity.html" title="interface in noppes.npcs.api.entity">IEntity</a> entity)</pre>
|
|
<div class="block"><span class="deprecatedLabel">Deprecated.</span> </div>
|
|
</li>
|
|
</ul>
|
|
<a name="spawnInWorld-noppes.npcs.api.IWorld-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>spawnInWorld</h4>
|
|
<pre>@Deprecated
|
|
void spawnInWorld(<a href="../../../noppes/npcs/api/IWorld.html" title="interface in noppes.npcs.api">IWorld</a> world)</pre>
|
|
<div class="block"><span class="deprecatedLabel">Deprecated.</span> </div>
|
|
</li>
|
|
</ul>
|
|
<a name="spawnInWorld-noppes.npcs.api.IWorld-double-double-double-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>spawnInWorld</h4>
|
|
<pre>@Deprecated
|
|
void spawnInWorld(<a href="../../../noppes/npcs/api/IWorld.html" title="interface in noppes.npcs.api">IWorld</a> world,
|
|
double x,
|
|
double y,
|
|
double z)</pre>
|
|
<div class="block"><span class="deprecatedLabel">Deprecated.</span> </div>
|
|
</li>
|
|
</ul>
|
|
<a name="setGlows-boolean-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setGlows</h4>
|
|
<pre>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 name="getGlows--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getGlows</h4>
|
|
<pre>boolean getGlows()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="setNoClip-boolean-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setNoClip</h4>
|
|
<pre>void setNoClip(boolean noClip)</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="getNoClip--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getNoClip</h4>
|
|
<pre>boolean getNoClip()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="setFacePlayer-boolean-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setFacePlayer</h4>
|
|
<pre>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 name="getFacePlayer--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getFacePlayer</h4>
|
|
<pre>boolean getFacePlayer()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="setDirectory-java.lang.String-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setDirectory</h4>
|
|
<pre>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 name="getDirectory--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getDirectory</h4>
|
|
<pre>java.lang.String getDirectory()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="setAmount-int-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setAmount</h4>
|
|
<pre>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 name="getAmount--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getAmount</h4>
|
|
<pre>int getAmount()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="setMaxAge-int-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setMaxAge</h4>
|
|
<pre>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 name="getMaxAge--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getMaxAge</h4>
|
|
<pre>int getMaxAge()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="setSize-int-int-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setSize</h4>
|
|
<pre>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 name="getWidth--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getWidth</h4>
|
|
<pre>int getWidth()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="getHeight--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getHeight</h4>
|
|
<pre>int getHeight()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="setOffset-int-int-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setOffset</h4>
|
|
<pre>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 name="getOffsetX--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getOffsetX</h4>
|
|
<pre>int getOffsetX()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="getOffsetY--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getOffsetY</h4>
|
|
<pre>int getOffsetY()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="setAnim-int-boolean-int-int-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setAnim</h4>
|
|
<pre>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 name="getAnimRate--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getAnimRate</h4>
|
|
<pre>int getAnimRate()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="getAnimLoop--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getAnimLoop</h4>
|
|
<pre>boolean getAnimLoop()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="getAnimStart--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getAnimStart</h4>
|
|
<pre>int getAnimStart()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="getAnimEnd--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getAnimEnd</h4>
|
|
<pre>int getAnimEnd()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="setPosition-double-double-double-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setPosition</h4>
|
|
<pre>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 name="getX--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getX</h4>
|
|
<pre>double getX()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="getY--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getY</h4>
|
|
<pre>double getY()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="getZ--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getZ</h4>
|
|
<pre>double getZ()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="setPosition-noppes.npcs.api.IPos-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setPosition</h4>
|
|
<pre>void setPosition(<a href="../../../noppes/npcs/api/IPos.html" title="interface in noppes.npcs.api">IPos</a> pos)</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="getPos--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getPos</h4>
|
|
<pre>void getPos()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="setMotion-double-double-double-float-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setMotion</h4>
|
|
<pre>void setMotion(double motionX,
|
|
double motionY,
|
|
double motionZ,
|
|
float gravity)</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="getMotionX--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getMotionX</h4>
|
|
<pre>double getMotionX()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="getMotionY--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getMotionY</h4>
|
|
<pre>double getMotionY()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="getMotionZ--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getMotionZ</h4>
|
|
<pre>double getMotionZ()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="getGravity--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getGravity</h4>
|
|
<pre>float getGravity()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="setHEXColor-int-int-float-int-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setHEXColor</h4>
|
|
<pre>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 name="getHEXColor1--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getHEXColor1</h4>
|
|
<pre>int getHEXColor1()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="getHEXColor2--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getHEXColor2</h4>
|
|
<pre>int getHEXColor2()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="getHEXColorRate--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getHEXColorRate</h4>
|
|
<pre>float getHEXColorRate()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="getHEXColorStart--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getHEXColorStart</h4>
|
|
<pre>int getHEXColorStart()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="setAlpha-float-float-float-int-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setAlpha</h4>
|
|
<pre>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 name="getAlpha1--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getAlpha1</h4>
|
|
<pre>float getAlpha1()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="getAlpha2--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getAlpha2</h4>
|
|
<pre>float getAlpha2()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="getAlphaRate--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getAlphaRate</h4>
|
|
<pre>float getAlphaRate()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="getAlphaRateStart--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getAlphaRateStart</h4>
|
|
<pre>int getAlphaRateStart()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="setScale-float-float-float-int-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setScale</h4>
|
|
<pre>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 name="getScale1--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getScale1</h4>
|
|
<pre>float getScale1()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="getScale2--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getScale2</h4>
|
|
<pre>float getScale2()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="getScaleRate--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getScaleRate</h4>
|
|
<pre>float getScaleRate()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="getScaleRateStart--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getScaleRateStart</h4>
|
|
<pre>int getScaleRateStart()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="setRotationX-float-float-float-int-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setRotationX</h4>
|
|
<pre>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 name="getRotationX1--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getRotationX1</h4>
|
|
<pre>float getRotationX1()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="getRotationX2--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getRotationX2</h4>
|
|
<pre>float getRotationX2()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="getRotationXRate--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getRotationXRate</h4>
|
|
<pre>float getRotationXRate()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="getRotationXRateStart--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getRotationXRateStart</h4>
|
|
<pre>int getRotationXRateStart()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="setRotationY-float-float-float-int-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setRotationY</h4>
|
|
<pre>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 name="getRotationY1--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getRotationY1</h4>
|
|
<pre>float getRotationY1()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="getRotationY2--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getRotationY2</h4>
|
|
<pre>float getRotationY2()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="getRotationYRate--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getRotationYRate</h4>
|
|
<pre>float getRotationYRate()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="getRotationYRateStart--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getRotationYRateStart</h4>
|
|
<pre>int getRotationYRateStart()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="setRotationZ-float-float-float-int-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setRotationZ</h4>
|
|
<pre>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 name="getRotationZ1--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getRotationZ1</h4>
|
|
<pre>float getRotationZ1()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="getRotationZ2--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getRotationZ2</h4>
|
|
<pre>float getRotationZ2()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="getRotationZRate--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getRotationZRate</h4>
|
|
<pre>float getRotationZRate()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="getRotationZRateStart--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>getRotationZRateStart</h4>
|
|
<pre>int getRotationZRateStart()</pre>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<!-- ========= END OF CLASS DATA ========= -->
|
|
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
|
<div class="bottomNav"><a name="navbar.bottom">
|
|
<!-- -->
|
|
</a>
|
|
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
|
|
<a name="navbar.bottom.firstrow">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="navList" title="Navigation">
|
|
<li><a href="../../../overview-summary.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">
|
|
<li><a href="../../../noppes/npcs/api/INbt.html" title="interface in noppes.npcs.api"><span class="typeNameLink">Prev Class</span></a></li>
|
|
<li><a href="../../../noppes/npcs/api/IPixelmonPlayerData.html" title="interface in noppes.npcs.api"><span class="typeNameLink">Next Class</span></a></li>
|
|
</ul>
|
|
<ul class="navList">
|
|
<li><a href="../../../index.html?noppes/npcs/api/IParticle.html" target="_top">Frames</a></li>
|
|
<li><a href="IParticle.html" target="_top">No Frames</a></li>
|
|
</ul>
|
|
<ul class="navList" id="allclasses_navbar_bottom">
|
|
<li><a href="../../../allclasses-noframe.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>
|
|
</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 name="skip.navbar.bottom">
|
|
<!-- -->
|
|
</a></div>
|
|
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
|
</body>
|
|
</html>
|