Files
CustomNPC-Plus/experimental/dev/noppes/npcs/api/entity/IEnergyProjectile.html
T
2026-03-13 21:21:55 +00:00

1295 lines
56 KiB
HTML

<!DOCTYPE HTML>
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc -->
<title>IEnergyProjectile (CustomNPC-Plus 1.11.1 API)</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="../../../../javadoc-theme.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="IEnergyProjectile (CustomNPC-Plus 1.11.1 API)";
}
}
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};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
var pathtoroot = "../../../../";
var useModuleDirectories = true;
loadScripts(document, 'script');</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<header role="banner">
<nav role="navigation">
<div class="fixedNav">
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a id="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../index.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage"><div id="javadoc-header"> <a href="/CustomNPC-Plus/" class="header-brand"> <div class="header-title"> CustomNPC+ <span>Javadoc Reference</span> </div> </a> <a href="/CustomNPC-Plus/" class="header-back"> Back to Index </a> </div></div>
</div>
<div class="subNav">
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../allclasses.html">All&nbsp;Classes</a></li>
</ul>
<ul class="navListSearch">
<li><label for="search">SEARCH:</label>
<input type="text" id="search" value="search" disabled="disabled">
<input type="reset" id="reset" value="reset" disabled="disabled">
</li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a id="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
</div>
<div class="navPadding">&nbsp;</div>
<script type="text/javascript"><!--
$('.navPadding').css('padding-top', $('.fixedNav').css("height"));
//-->
</script>
</nav>
</header>
<!-- ======== START OF CLASS DATA ======== -->
<main role="main">
<div class="header">
<div class="subTitle"><span class="packageLabelInType">Package</span>&nbsp;<a href="package-summary.html">noppes.npcs.api.entity</a></div>
<h2 title="Interface IEnergyProjectile" class="title">Interface IEnergyProjectile&lt;T extends net.minecraft.entity.Entity&gt;</h2>
</div>
<div class="contentContainer">
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Superinterfaces:</dt>
<dd><code><a href="IEnergyAbility.html" title="interface in noppes.npcs.api.entity">IEnergyAbility</a>&lt;T&gt;</code>, <code><a href="IEntity.html" title="interface in noppes.npcs.api.entity">IEntity</a>&lt;T&gt;</code></dd>
</dl>
<dl>
<dt>All Known Subinterfaces:</dt>
<dd><code><a href="IEnergyBeam.html" title="interface in noppes.npcs.api.entity">IEnergyBeam</a>&lt;T&gt;</code>, <code><a href="IEnergyDisc.html" title="interface in noppes.npcs.api.entity">IEnergyDisc</a>&lt;T&gt;</code>, <code><a href="IEnergyLaser.html" title="interface in noppes.npcs.api.entity">IEnergyLaser</a>&lt;T&gt;</code>, <code><a href="IEnergyOrb.html" title="interface in noppes.npcs.api.entity">IEnergyOrb</a>&lt;T&gt;</code>, <code><a href="IEnergySlicer.html" title="interface in noppes.npcs.api.entity">IEnergySlicer</a>&lt;T&gt;</code></dd>
</dl>
<hr>
<pre>public interface <span class="typeNameLabel">IEnergyProjectile&lt;T extends net.minecraft.entity.Entity&gt;</span>
extends <a href="IEnergyAbility.html" title="interface in noppes.npcs.api.entity">IEnergyAbility</a>&lt;T&gt;</pre>
<div class="block">Base interface for all energy projectile entities (Orb, Beam, Disc, Laser, Slicer).
<p>
Extends <a href="IEnergyAbility.html" title="interface in noppes.npcs.api.entity"><code>IEnergyAbility</code></a> for shared display, lightning, owner, and charging methods.
<p>
<b>Fire methods — launch from current position (no repositioning):</b>
<ul>
<li><a href="#fireAt(noppes.npcs.api.entity.IEntity)"><code>fireAt(IEntity)</code></a> — toward an entity</li>
<li><a href="#fireAt(double,double,double)"><code>fireAt(double, double, double)</code></a> — toward world coordinates</li>
<li><a href="#fireDirection(float,float)"><code>fireDirection(float, float)</code></a> — in a yaw/pitch direction</li>
</ul>
<b>FireFrom methods — reposition to caster's eye, then launch (look-vector snap):</b>
<ul>
<li><a href="#fireFrom(noppes.npcs.api.entity.IEntityLivingBase)"><code>fireFrom(IEntityLivingBase)</code></a> — fire along caster's look direction</li>
<li><a href="#fireFrom(noppes.npcs.api.entity.IEntityLivingBase,noppes.npcs.api.entity.IEntity)"><code>fireFrom(IEntityLivingBase, IEntity)</code></a> — fire toward a target entity</li>
</ul></div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ========== METHOD SUMMARY =========== -->
<section>
<ul class="blockList">
<li class="blockList"><a id="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t3" class="tableTab"><span><a href="javascript:show(4);">Abstract Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colSecond" scope="col">Method</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#fireAt(double,double,double)">fireAt</a></span>&#8203;(double&nbsp;x,
double&nbsp;y,
double&nbsp;z)</code></th>
<td class="colLast">
<div class="block">Spawns the projectile and launches it toward the specified world coordinates.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#fireAt(noppes.npcs.api.entity.IEntity)">fireAt</a></span>&#8203;(<a href="IEntity.html" title="interface in noppes.npcs.api.entity">IEntity</a>&nbsp;target)</code></th>
<td class="colLast">
<div class="block">Spawns the projectile and launches it from its <b>current position</b> toward the target entity.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#fireDirection(float,float)">fireDirection</a></span>&#8203;(float&nbsp;yaw,
float&nbsp;pitch)</code></th>
<td class="colLast">
<div class="block">Spawns the projectile and launches it in the specified yaw/pitch direction.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#fireFrom(noppes.npcs.api.entity.IEntityLivingBase)">fireFrom</a></span>&#8203;(<a href="IEntityLivingBase.html" title="interface in noppes.npcs.api.entity">IEntityLivingBase</a>&nbsp;caster)</code></th>
<td class="colLast">
<div class="block">Sets the owner, positions the projectile at the caster's eye level, and launches it
using the entity's full launch sequence (<code>startMoving</code>/<code>startFiring</code>).</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#fireFrom(noppes.npcs.api.entity.IEntityLivingBase,noppes.npcs.api.entity.IEntity)">fireFrom</a></span>&#8203;(<a href="IEntityLivingBase.html" title="interface in noppes.npcs.api.entity">IEntityLivingBase</a>&nbsp;caster,
<a href="IEntity.html" title="interface in noppes.npcs.api.entity">IEntity</a>&nbsp;target)</code></th>
<td class="colLast">
<div class="block">Sets the owner, positions the projectile at the caster's eye level, and launches it
toward the target entity using the entity's full launch sequence.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getAnchor()">getAnchor</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>float</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getAnchorOffsetX()">getAnchorOffsetX</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>float</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getAnchorOffsetY()">getAnchorOffsetY</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>float</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getAnchorOffsetZ()">getAnchorOffsetZ</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code>float</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getDamage()">getDamage</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getEnergyType()">getEnergyType</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns the energy projectile sub-type.</div>
</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code>float</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getExplosionDamageFalloff()">getExplosionDamageFalloff</a></span>()</code></th>
<td class="colLast">&nbsp;</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="#getExplosionRadius()">getExplosionRadius</a></span>()</code></th>
<td class="colLast">&nbsp;</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="#getHitType()">getHitType</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i14" class="altColor">
<td class="colFirst"><code>float</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getHomingRange()">getHomingRange</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i15" class="rowColor">
<td class="colFirst"><code>float</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getHomingStrength()">getHomingStrength</a></span>()</code></th>
<td class="colLast">&nbsp;</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="#getInterpolatedRotationX(float)">getInterpolatedRotationX</a></span>&#8203;(float&nbsp;partialTicks)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i17" class="rowColor">
<td class="colFirst"><code>float</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getInterpolatedRotationY(float)">getInterpolatedRotationY</a></span>&#8203;(float&nbsp;partialTicks)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i18" class="altColor">
<td class="colFirst"><code>float</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getInterpolatedRotationZ(float)">getInterpolatedRotationZ</a></span>&#8203;(float&nbsp;partialTicks)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i19" class="rowColor">
<td class="colFirst"><code>float</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getInterpolatedSize(float)">getInterpolatedSize</a></span>&#8203;(float&nbsp;partialTicks)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i20" class="altColor">
<td class="colFirst"><code>float</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getKnockback()">getKnockback</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i21" class="rowColor">
<td class="colFirst"><code>float</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getKnockbackUp()">getKnockbackUp</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i22" class="altColor">
<td class="colFirst"><code>float</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getMaxDistance()">getMaxDistance</a></span>()</code></th>
<td class="colLast">&nbsp;</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="#getMaxHits()">getMaxHits</a></span>()</code></th>
<td class="colLast">&nbsp;</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="#getMaxLifetime()">getMaxLifetime</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i25" class="rowColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getMultiHitDelayTicks()">getMultiHitDelayTicks</a></span>()</code></th>
<td class="colLast">&nbsp;</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="#getRotationSpeed()">getRotationSpeed</a></span>()</code></th>
<td class="colLast">&nbsp;</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="#getSize()">getSize</a></span>()</code></th>
<td class="colLast">&nbsp;</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="#getSpeed()">getSpeed</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i29" class="rowColor">
<td class="colFirst"><code>double</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getStartX()">getStartX</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i30" class="altColor">
<td class="colFirst"><code>double</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getStartY()">getStartY</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i31" class="rowColor">
<td class="colFirst"><code>double</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getStartZ()">getStartZ</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i32" class="altColor">
<td class="colFirst"><code><a href="IEntity.html" title="interface in noppes.npcs.api.entity">IEntity</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getTarget()">getTarget</a></span>()</code></th>
<td class="colLast">&nbsp;</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="#getTargetEntityId()">getTargetEntityId</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i34" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#hasHit()">hasHit</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i35" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isExplosive()">isExplosive</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i36" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isHoming()">isHoming</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i37" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setDamage(float)">setDamage</a></span>&#8203;(float&nbsp;damage)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i38" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setExplosionDamageFalloff(float)">setExplosionDamageFalloff</a></span>&#8203;(float&nbsp;falloff)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i39" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setExplosionRadius(float)">setExplosionRadius</a></span>&#8203;(float&nbsp;radius)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i40" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setExplosive(boolean)">setExplosive</a></span>&#8203;(boolean&nbsp;explosive)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i41" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setHitType(int)">setHitType</a></span>&#8203;(int&nbsp;hitType)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i42" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setHoming(boolean)">setHoming</a></span>&#8203;(boolean&nbsp;homing)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i43" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setHomingRange(float)">setHomingRange</a></span>&#8203;(float&nbsp;range)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i44" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setHomingStrength(float)">setHomingStrength</a></span>&#8203;(float&nbsp;strength)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i45" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setKnockback(float)">setKnockback</a></span>&#8203;(float&nbsp;knockback)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i46" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setKnockbackUp(float)">setKnockbackUp</a></span>&#8203;(float&nbsp;knockbackUp)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i47" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setMaxDistance(float)">setMaxDistance</a></span>&#8203;(float&nbsp;distance)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i48" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setMaxHits(int)">setMaxHits</a></span>&#8203;(int&nbsp;maxHits)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i49" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setMaxLifetime(int)">setMaxLifetime</a></span>&#8203;(int&nbsp;ticks)</code></th>
<td class="colLast">&nbsp;</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="#setMultiHitDelayTicks(int)">setMultiHitDelayTicks</a></span>&#8203;(int&nbsp;delayTicks)</code></th>
<td class="colLast">&nbsp;</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="#setOwner(noppes.npcs.api.entity.IEntity)">setOwner</a></span>&#8203;(<a href="IEntity.html" title="interface in noppes.npcs.api.entity">IEntity</a>&nbsp;owner)</code></th>
<td class="colLast">
<div class="block">Sets the owner entity (used for homing return, damage attribution, etc.).</div>
</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="#setRotationSpeed(float)">setRotationSpeed</a></span>&#8203;(float&nbsp;speed)</code></th>
<td class="colLast">&nbsp;</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="#setSize(float)">setSize</a></span>&#8203;(float&nbsp;size)</code></th>
<td class="colLast">
<div class="block">Sets the projectile's visual and collision size.</div>
</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="#setSpeed(float)">setSpeed</a></span>&#8203;(float&nbsp;speed)</code></th>
<td class="colLast">&nbsp;</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="#setTarget(noppes.npcs.api.entity.IEntity)">setTarget</a></span>&#8203;(<a href="IEntity.html" title="interface in noppes.npcs.api.entity">IEntity</a>&nbsp;target)</code></th>
<td class="colLast">
<div class="block">Sets the homing/tracking target entity.</div>
</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="#syncClient()">syncClient</a></span>()</code></th>
<td class="colLast">
<div class="block">Sends all current visual, movement, and position data to tracking clients.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a id="methods.inherited.from.class.noppes.npcs.api.entity.IEnergyAbility">
<!-- -->
</a>
<h3>Methods inherited from interface&nbsp;noppes.npcs.api.entity.<a href="IEnergyAbility.html" title="interface in noppes.npcs.api.entity">IEnergyAbility</a></h3>
<code><a href="IEnergyAbility.html#getChargeProgress()">getChargeProgress</a>, <a href="IEnergyAbility.html#getDamageData()">getDamageData</a>, <a href="IEnergyAbility.html#getInnerAlpha()">getInnerAlpha</a>, <a href="IEnergyAbility.html#getInnerColor()">getInnerColor</a>, <a href="IEnergyAbility.html#getLightningDensity()">getLightningDensity</a>, <a href="IEnergyAbility.html#getLightningFadeTime()">getLightningFadeTime</a>, <a href="IEnergyAbility.html#getLightningRadius()">getLightningRadius</a>, <a href="IEnergyAbility.html#getMagicData()">getMagicData</a>, <a href="IEnergyAbility.html#getOuterColor()">getOuterColor</a>, <a href="IEnergyAbility.html#getOuterColorAlpha()">getOuterColorAlpha</a>, <a href="IEnergyAbility.html#getOuterColorWidth()">getOuterColorWidth</a>, <a href="IEnergyAbility.html#getOwner()">getOwner</a>, <a href="IEnergyAbility.html#getOwnerEntityId()">getOwnerEntityId</a>, <a href="IEnergyAbility.html#hasLightningEffect()">hasLightningEffect</a>, <a href="IEnergyAbility.html#isCharging()">isCharging</a>, <a href="IEnergyAbility.html#isIgnoreIFrames()">isIgnoreIFrames</a>, <a href="IEnergyAbility.html#isOuterColorEnabled()">isOuterColorEnabled</a>, <a href="IEnergyAbility.html#setDamageData(noppes.npcs.api.INbt)">setDamageData</a>, <a href="IEnergyAbility.html#setIgnoreIFrames(boolean)">setIgnoreIFrames</a>, <a href="IEnergyAbility.html#setInnerAlpha(float)">setInnerAlpha</a>, <a href="IEnergyAbility.html#setInnerColor(int)">setInnerColor</a>, <a href="IEnergyAbility.html#setLightningDensity(float)">setLightningDensity</a>, <a href="IEnergyAbility.html#setLightningEffect(boolean)">setLightningEffect</a>, <a href="IEnergyAbility.html#setLightningFadeTime(int)">setLightningFadeTime</a>, <a href="IEnergyAbility.html#setLightningRadius(float)">setLightningRadius</a>, <a href="IEnergyAbility.html#setMagicData(noppes.npcs.api.handler.data.IMagicData)">setMagicData</a>, <a href="IEnergyAbility.html#setOuterColor(int)">setOuterColor</a>, <a href="IEnergyAbility.html#setOuterColorAlpha(float)">setOuterColorAlpha</a>, <a href="IEnergyAbility.html#setOuterColorEnabled(boolean)">setOuterColorEnabled</a>, <a href="IEnergyAbility.html#setOuterColorWidth(float)">setOuterColorWidth</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a id="methods.inherited.from.class.noppes.npcs.api.entity.IEntity">
<!-- -->
</a>
<h3>Methods inherited from interface&nbsp;noppes.npcs.api.entity.<a href="IEntity.html" title="interface in noppes.npcs.api.entity">IEntity</a></h3>
<code><a href="IEntity.html#capturesDrops()">capturesDrops</a>, <a href="IEntity.html#clearStoredData()">clearStoredData</a>, <a href="IEntity.html#clearTempData()">clearTempData</a>, <a href="IEntity.html#despawn()">despawn</a>, <a href="IEntity.html#dropItem(noppes.npcs.api.item.IItemStack)">dropItem</a>, <a href="IEntity.html#extinguish()">extinguish</a>, <a href="IEntity.html#getAge()">getAge</a>, <a href="IEntity.html#getAllNbt()">getAllNbt</a>, <a href="IEntity.html#getBlockX()">getBlockX</a>, <a href="IEntity.html#getBlockY()">getBlockY</a>, <a href="IEntity.html#getBlockZ()">getBlockZ</a>, <a href="IEntity.html#getCapturedDrops()">getCapturedDrops</a>, <a href="IEntity.html#getCollidingEntities()">getCollidingEntities</a>, <a href="IEntity.html#getDimension()">getDimension</a>, <a href="IEntity.html#getEntityId()">getEntityId</a>, <a href="IEntity.html#getHeight()">getHeight</a>, <a href="IEntity.html#getMCEntity()">getMCEntity</a>, <a href="IEntity.html#getMotion()">getMotion</a>, <a href="IEntity.html#getMotionX()">getMotionX</a>, <a href="IEntity.html#getMotionY()">getMotionY</a>, <a href="IEntity.html#getMotionZ()">getMotionZ</a>, <a href="IEntity.html#getMount()">getMount</a>, <a href="IEntity.html#getNbt()">getNbt</a>, <a href="IEntity.html#getNbtOptional()">getNbtOptional</a>, <a href="IEntity.html#getPitch()">getPitch</a>, <a href="IEntity.html#getPosition()">getPosition</a>, <a href="IEntity.html#getRider()">getRider</a>, <a href="IEntity.html#getRotation()">getRotation</a>, <a href="IEntity.html#getStoredData(java.lang.String)">getStoredData</a>, <a href="IEntity.html#getStoredDataKeys()">getStoredDataKeys</a>, <a href="IEntity.html#getSurroundingEntities(int)">getSurroundingEntities</a>, <a href="IEntity.html#getSurroundingEntities(int,int)">getSurroundingEntities</a>, <a href="IEntity.html#getTempData(java.lang.String)">getTempData</a>, <a href="IEntity.html#getTempDataKeys()">getTempDataKeys</a>, <a href="IEntity.html#getType()">getType</a>, <a href="IEntity.html#getTypeName()">getTypeName</a>, <a href="IEntity.html#getUniqueID()">getUniqueID</a>, <a href="IEntity.html#getWidth()">getWidth</a>, <a href="IEntity.html#getWorld()">getWorld</a>, <a href="IEntity.html#getX()">getX</a>, <a href="IEntity.html#getY()">getY</a>, <a href="IEntity.html#getYOffset()">getYOffset</a>, <a href="IEntity.html#getZ()">getZ</a>, <a href="IEntity.html#hasCollided()">hasCollided</a>, <a href="IEntity.html#hasCollidedHorizontally()">hasCollidedHorizontally</a>, <a href="IEntity.html#hasCollidedVertically()">hasCollidedVertically</a>, <a href="IEntity.html#hasStoredData(java.lang.String)">hasStoredData</a>, <a href="IEntity.html#hasTempData(java.lang.String)">hasTempData</a>, <a href="IEntity.html#inFire()">inFire</a>, <a href="IEntity.html#inLava()">inLava</a>, <a href="IEntity.html#inWater()">inWater</a>, <a href="IEntity.html#isAirborne()">isAirborne</a>, <a href="IEntity.html#isAlive()">isAlive</a>, <a href="IEntity.html#isBurning()">isBurning</a>, <a href="IEntity.html#isSneaking()">isSneaking</a>, <a href="IEntity.html#isSprinting()">isSprinting</a>, <a href="IEntity.html#knockback(double,double,double,float)">knockback</a>, <a href="IEntity.html#knockback(int,float)">knockback</a>, <a href="IEntity.html#knockback(noppes.npcs.api.IPos,float)">knockback</a>, <a href="IEntity.html#removeStoredData(java.lang.String)">removeStoredData</a>, <a href="IEntity.html#removeTempData(java.lang.String)">removeTempData</a>, <a href="IEntity.html#setBurning(int)">setBurning</a>, <a href="IEntity.html#setCapturedDrops(noppes.npcs.api.entity.IEntity%5B%5D)">setCapturedDrops</a>, <a href="IEntity.html#setCapturesDrops(boolean)">setCapturesDrops</a>, <a href="IEntity.html#setDimension(int)">setDimension</a>, <a href="IEntity.html#setImmune(int)">setImmune</a>, <a href="IEntity.html#setInvisible(boolean)">setInvisible</a>, <a href="IEntity.html#setMotion(double,double,double)">setMotion</a>, <a href="IEntity.html#setMotion(noppes.npcs.api.IPos)">setMotion</a>, <a href="IEntity.html#setMotionX(double)">setMotionX</a>, <a href="IEntity.html#setMotionY(double)">setMotionY</a>, <a href="IEntity.html#setMotionZ(double)">setMotionZ</a>, <a href="IEntity.html#setMount(noppes.npcs.api.entity.IEntity)">setMount</a>, <a href="IEntity.html#setNbt(noppes.npcs.api.INbt)">setNbt</a>, <a href="IEntity.html#setPitch(float)">setPitch</a>, <a href="IEntity.html#setPosition(double,double,double)">setPosition</a>, <a href="IEntity.html#setPosition(noppes.npcs.api.IPos)">setPosition</a>, <a href="IEntity.html#setRider(noppes.npcs.api.entity.IEntity)">setRider</a>, <a href="IEntity.html#setRotation(float)">setRotation</a>, <a href="IEntity.html#setRotation(float,float)">setRotation</a>, <a href="IEntity.html#setSneaking(boolean)">setSneaking</a>, <a href="IEntity.html#setSprinting(boolean)">setSprinting</a>, <a href="IEntity.html#setStoredData(java.lang.String,java.lang.Object)">setStoredData</a>, <a href="IEntity.html#setTempData(java.lang.String,java.lang.Object)">setTempData</a>, <a href="IEntity.html#setX(double)">setX</a>, <a href="IEntity.html#setY(double)">setY</a>, <a href="IEntity.html#setZ(double)">setZ</a>, <a href="IEntity.html#spawnParticle(noppes.npcs.api.IParticle)">spawnParticle</a>, <a href="IEntity.html#storeAsClone(int,java.lang.String)">storeAsClone</a>, <a href="IEntity.html#typeOf(int)">typeOf</a>, <a href="IEntity.html#updateEntity()">updateEntity</a></code></li>
</ul>
</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="setOwner(noppes.npcs.api.entity.IEntity)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setOwner</h4>
<pre class="methodSignature">void&nbsp;setOwner&#8203;(<a href="IEntity.html" title="interface in noppes.npcs.api.entity">IEntity</a>&nbsp;owner)</pre>
<div class="block">Sets the owner entity (used for homing return, damage attribution, etc.).</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>owner</code> - the entity that owns this projectile</dd>
</dl>
</li>
</ul>
<a id="getTargetEntityId()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTargetEntityId</h4>
<pre class="methodSignature">int&nbsp;getTargetEntityId()</pre>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the entity ID of the current homing/tracking target, or -1 if none</dd>
</dl>
</li>
</ul>
<a id="getTarget()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTarget</h4>
<pre class="methodSignature"><a href="IEntity.html" title="interface in noppes.npcs.api.entity">IEntity</a>&nbsp;getTarget()</pre>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the current homing/tracking target entity, or null if none</dd>
</dl>
</li>
</ul>
<a id="setTarget(noppes.npcs.api.entity.IEntity)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setTarget</h4>
<pre class="methodSignature">void&nbsp;setTarget&#8203;(<a href="IEntity.html" title="interface in noppes.npcs.api.entity">IEntity</a>&nbsp;target)</pre>
<div class="block">Sets the homing/tracking target entity. Pass null to clear.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>target</code> - the entity to home towards</dd>
</dl>
</li>
</ul>
<a id="getSize()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getSize</h4>
<pre class="methodSignature">float&nbsp;getSize()</pre>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the projectile's visual and collision size</dd>
</dl>
</li>
</ul>
<a id="setSize(float)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setSize</h4>
<pre class="methodSignature">void&nbsp;setSize&#8203;(float&nbsp;size)</pre>
<div class="block">Sets the projectile's visual and collision size.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>size</code> - the projectile size</dd>
</dl>
</li>
</ul>
<a id="getRotationSpeed()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getRotationSpeed</h4>
<pre class="methodSignature">float&nbsp;getRotationSpeed()</pre>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the visual rotation speed (degrees per tick)</dd>
</dl>
</li>
</ul>
<a id="setRotationSpeed(float)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setRotationSpeed</h4>
<pre class="methodSignature">void&nbsp;setRotationSpeed&#8203;(float&nbsp;speed)</pre>
</li>
</ul>
<a id="getInterpolatedRotationX(float)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getInterpolatedRotationX</h4>
<pre class="methodSignature">float&nbsp;getInterpolatedRotationX&#8203;(float&nbsp;partialTicks)</pre>
</li>
</ul>
<a id="getInterpolatedRotationY(float)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getInterpolatedRotationY</h4>
<pre class="methodSignature">float&nbsp;getInterpolatedRotationY&#8203;(float&nbsp;partialTicks)</pre>
</li>
</ul>
<a id="getInterpolatedRotationZ(float)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getInterpolatedRotationZ</h4>
<pre class="methodSignature">float&nbsp;getInterpolatedRotationZ&#8203;(float&nbsp;partialTicks)</pre>
</li>
</ul>
<a id="getInterpolatedSize(float)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getInterpolatedSize</h4>
<pre class="methodSignature">float&nbsp;getInterpolatedSize&#8203;(float&nbsp;partialTicks)</pre>
</li>
</ul>
<a id="getMaxDistance()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMaxDistance</h4>
<pre class="methodSignature">float&nbsp;getMaxDistance()</pre>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>maximum travel distance before the projectile despawns (0 = unlimited)</dd>
</dl>
</li>
</ul>
<a id="setMaxDistance(float)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setMaxDistance</h4>
<pre class="methodSignature">void&nbsp;setMaxDistance&#8203;(float&nbsp;distance)</pre>
</li>
</ul>
<a id="getMaxLifetime()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMaxLifetime</h4>
<pre class="methodSignature">int&nbsp;getMaxLifetime()</pre>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>maximum lifetime in ticks before the projectile despawns (0 = unlimited)</dd>
</dl>
</li>
</ul>
<a id="setMaxLifetime(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setMaxLifetime</h4>
<pre class="methodSignature">void&nbsp;setMaxLifetime&#8203;(int&nbsp;ticks)</pre>
</li>
</ul>
<a id="getDamage()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDamage</h4>
<pre class="methodSignature">float&nbsp;getDamage()</pre>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>base damage dealt on hit</dd>
</dl>
</li>
</ul>
<a id="setDamage(float)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setDamage</h4>
<pre class="methodSignature">void&nbsp;setDamage&#8203;(float&nbsp;damage)</pre>
</li>
</ul>
<a id="getKnockback()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getKnockback</h4>
<pre class="methodSignature">float&nbsp;getKnockback()</pre>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>horizontal knockback strength</dd>
</dl>
</li>
</ul>
<a id="setKnockback(float)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setKnockback</h4>
<pre class="methodSignature">void&nbsp;setKnockback&#8203;(float&nbsp;knockback)</pre>
</li>
</ul>
<a id="getKnockbackUp()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getKnockbackUp</h4>
<pre class="methodSignature">float&nbsp;getKnockbackUp()</pre>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>upward knockback strength</dd>
</dl>
</li>
</ul>
<a id="setKnockbackUp(float)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setKnockbackUp</h4>
<pre class="methodSignature">void&nbsp;setKnockbackUp&#8203;(float&nbsp;knockbackUp)</pre>
</li>
</ul>
<a id="isExplosive()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isExplosive</h4>
<pre class="methodSignature">boolean&nbsp;isExplosive()</pre>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>true if the projectile explodes on impact</dd>
</dl>
</li>
</ul>
<a id="setExplosive(boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setExplosive</h4>
<pre class="methodSignature">void&nbsp;setExplosive&#8203;(boolean&nbsp;explosive)</pre>
</li>
</ul>
<a id="getExplosionRadius()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getExplosionRadius</h4>
<pre class="methodSignature">float&nbsp;getExplosionRadius()</pre>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>explosion radius (only used if <a href="#isExplosive()"><code>isExplosive()</code></a> is true)</dd>
</dl>
</li>
</ul>
<a id="setExplosionRadius(float)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setExplosionRadius</h4>
<pre class="methodSignature">void&nbsp;setExplosionRadius&#8203;(float&nbsp;radius)</pre>
</li>
</ul>
<a id="getExplosionDamageFalloff()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getExplosionDamageFalloff</h4>
<pre class="methodSignature">float&nbsp;getExplosionDamageFalloff()</pre>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>damage falloff multiplier over explosion radius (0 = no falloff, 1 = full falloff)</dd>
</dl>
</li>
</ul>
<a id="setExplosionDamageFalloff(float)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setExplosionDamageFalloff</h4>
<pre class="methodSignature">void&nbsp;setExplosionDamageFalloff&#8203;(float&nbsp;falloff)</pre>
</li>
</ul>
<a id="getHitType()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getHitType</h4>
<pre class="methodSignature">int&nbsp;getHitType()</pre>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>hit behavior type (0 = single hit, 1 = pierce, 2 = multi-hit with delay)</dd>
</dl>
</li>
</ul>
<a id="setHitType(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setHitType</h4>
<pre class="methodSignature">void&nbsp;setHitType&#8203;(int&nbsp;hitType)</pre>
</li>
</ul>
<a id="getMultiHitDelayTicks()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMultiHitDelayTicks</h4>
<pre class="methodSignature">int&nbsp;getMultiHitDelayTicks()</pre>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>ticks between multi-hit damage ticks on the same entity</dd>
</dl>
</li>
</ul>
<a id="setMultiHitDelayTicks(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setMultiHitDelayTicks</h4>
<pre class="methodSignature">void&nbsp;setMultiHitDelayTicks&#8203;(int&nbsp;delayTicks)</pre>
</li>
</ul>
<a id="getMaxHits()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMaxHits</h4>
<pre class="methodSignature">int&nbsp;getMaxHits()</pre>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>maximum number of entities this projectile can hit (0 = unlimited)</dd>
</dl>
</li>
</ul>
<a id="setMaxHits(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setMaxHits</h4>
<pre class="methodSignature">void&nbsp;setMaxHits&#8203;(int&nbsp;maxHits)</pre>
</li>
</ul>
<a id="getSpeed()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getSpeed</h4>
<pre class="methodSignature">float&nbsp;getSpeed()</pre>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>travel speed (blocks per tick)</dd>
</dl>
</li>
</ul>
<a id="setSpeed(float)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setSpeed</h4>
<pre class="methodSignature">void&nbsp;setSpeed&#8203;(float&nbsp;speed)</pre>
</li>
</ul>
<a id="isHoming()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isHoming</h4>
<pre class="methodSignature">boolean&nbsp;isHoming()</pre>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>true if the projectile homes toward its target</dd>
</dl>
</li>
</ul>
<a id="setHoming(boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setHoming</h4>
<pre class="methodSignature">void&nbsp;setHoming&#8203;(boolean&nbsp;homing)</pre>
</li>
</ul>
<a id="getHomingStrength()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getHomingStrength</h4>
<pre class="methodSignature">float&nbsp;getHomingStrength()</pre>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>how aggressively the projectile turns toward its target (higher = tighter turns)</dd>
</dl>
</li>
</ul>
<a id="setHomingStrength(float)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setHomingStrength</h4>
<pre class="methodSignature">void&nbsp;setHomingStrength&#8203;(float&nbsp;strength)</pre>
</li>
</ul>
<a id="getHomingRange()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getHomingRange</h4>
<pre class="methodSignature">float&nbsp;getHomingRange()</pre>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>maximum range at which homing will acquire/track a target</dd>
</dl>
</li>
</ul>
<a id="setHomingRange(float)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setHomingRange</h4>
<pre class="methodSignature">void&nbsp;setHomingRange&#8203;(float&nbsp;range)</pre>
</li>
</ul>
<a id="getAnchor()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getAnchor</h4>
<pre class="methodSignature">int&nbsp;getAnchor()</pre>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>anchor point type used during the charge/windup phase</dd>
</dl>
</li>
</ul>
<a id="getAnchorOffsetX()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getAnchorOffsetX</h4>
<pre class="methodSignature">float&nbsp;getAnchorOffsetX()</pre>
</li>
</ul>
<a id="getAnchorOffsetY()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getAnchorOffsetY</h4>
<pre class="methodSignature">float&nbsp;getAnchorOffsetY()</pre>
</li>
</ul>
<a id="getAnchorOffsetZ()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getAnchorOffsetZ</h4>
<pre class="methodSignature">float&nbsp;getAnchorOffsetZ()</pre>
</li>
</ul>
<a id="getStartX()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getStartX</h4>
<pre class="methodSignature">double&nbsp;getStartX()</pre>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>X coordinate where the projectile was launched from</dd>
</dl>
</li>
</ul>
<a id="getStartY()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getStartY</h4>
<pre class="methodSignature">double&nbsp;getStartY()</pre>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Y coordinate where the projectile was launched from</dd>
</dl>
</li>
</ul>
<a id="getStartZ()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getStartZ</h4>
<pre class="methodSignature">double&nbsp;getStartZ()</pre>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Z coordinate where the projectile was launched from</dd>
</dl>
</li>
</ul>
<a id="hasHit()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hasHit</h4>
<pre class="methodSignature">boolean&nbsp;hasHit()</pre>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>true if the projectile has hit something</dd>
</dl>
</li>
</ul>
<a id="getEnergyType()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getEnergyType</h4>
<pre class="methodSignature">int&nbsp;getEnergyType()</pre>
<div class="block">Returns the energy projectile sub-type.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>0=Orb, 1=Beam, 2=Disc, 3=Laser, 4=Slicer</dd>
</dl>
</li>
</ul>
<a id="syncClient()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>syncClient</h4>
<pre class="methodSignature">void&nbsp;syncClient()</pre>
<div class="block">Sends all current visual, movement, and position data to tracking clients.
<p>
Call this <b>after</b> making batch changes to properties like size, speed,
homing, colors, or type-specific fields (beam width, disc radius, etc.).
This avoids sending a separate packet for every setter call.
<p>
<b>Note:</b> <code>fireAt()</code>, <code>fireDirection()</code>, and <code>fireFrom()</code>
automatically sync motion when called on an already-spawned projectile,
so you do not need to call <code>syncClient()</code> after firing.
Use this method when changing properties that affect rendering or movement
behavior without re-firing.
<p>
Example:
<pre>
orb.setSize(2.0);
orb.setSpeed(0.5);
orb.setInnerColor(0xFF0000);
orb.syncClient(); // one packet for all changes
</pre></div>
</li>
</ul>
<a id="fireAt(noppes.npcs.api.entity.IEntity)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>fireAt</h4>
<pre class="methodSignature">void&nbsp;fireAt&#8203;(<a href="IEntity.html" title="interface in noppes.npcs.api.entity">IEntity</a>&nbsp;target)</pre>
<div class="block">Spawns the projectile and launches it from its <b>current position</b> toward the target entity.
<p>
No look-vector repositioning occurs — the projectile fires from exactly where it was
placed by <code>createOrb</code>/<code>createBeam</code>/etc. If the target is a living entity,
it is also set as the homing target for projectiles with homing enabled.
<p>
To launch from the owner's eye position with look-vector snapping, use
<a href="#fireFrom(noppes.npcs.api.entity.IEntityLivingBase,noppes.npcs.api.entity.IEntity)"><code>fireFrom(IEntityLivingBase, IEntity)</code></a> instead.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>target</code> - the entity to fire toward (can be null for untargeted launch)</dd>
</dl>
</li>
</ul>
<a id="fireAt(double,double,double)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>fireAt</h4>
<pre class="methodSignature">void&nbsp;fireAt&#8203;(double&nbsp;x,
double&nbsp;y,
double&nbsp;z)</pre>
<div class="block">Spawns the projectile and launches it toward the specified world coordinates.
<p>
The projectile fires from its <b>current position</b> — no look-vector repositioning occurs.
Motion is calculated as a normalized direction vector scaled by the projectile's speed.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>x</code> - target X coordinate</dd>
<dd><code>y</code> - target Y coordinate</dd>
<dd><code>z</code> - target Z coordinate</dd>
</dl>
</li>
</ul>
<a id="fireDirection(float,float)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>fireDirection</h4>
<pre class="methodSignature">void&nbsp;fireDirection&#8203;(float&nbsp;yaw,
float&nbsp;pitch)</pre>
<div class="block">Spawns the projectile and launches it in the specified yaw/pitch direction.
<p>
The projectile fires from its <b>current position</b> — no look-vector repositioning occurs.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>yaw</code> - horizontal angle in degrees (0 = south, 90 = west, like Minecraft yaw)</dd>
<dd><code>pitch</code> - vertical angle in degrees (negative = up, positive = down)</dd>
</dl>
</li>
</ul>
<a id="fireFrom(noppes.npcs.api.entity.IEntityLivingBase)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>fireFrom</h4>
<pre class="methodSignature">void&nbsp;fireFrom&#8203;(<a href="IEntityLivingBase.html" title="interface in noppes.npcs.api.entity">IEntityLivingBase</a>&nbsp;caster)</pre>
<div class="block">Sets the owner, positions the projectile at the caster's eye level, and launches it
using the entity's full launch sequence (<code>startMoving</code>/<code>startFiring</code>).
<p>
For player-owned projectiles, this <b>snaps the projectile to the owner's look-vector
position</b> and fires in the caster's look direction. This is the intended method for
"cast from self" behavior. The projectile's position set by <code>createOrb</code>/etc. is
overridden.
<p>
Use <a href="#fireAt(noppes.npcs.api.entity.IEntity)"><code>fireAt(IEntity)</code></a> or <a href="#fireAt(double,double,double)"><code>fireAt(double, double, double)</code></a> instead if you
want to launch from a specific custom position.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>caster</code> - the entity to fire from</dd>
</dl>
</li>
</ul>
<a id="fireFrom(noppes.npcs.api.entity.IEntityLivingBase,noppes.npcs.api.entity.IEntity)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>fireFrom</h4>
<pre class="methodSignature">void&nbsp;fireFrom&#8203;(<a href="IEntityLivingBase.html" title="interface in noppes.npcs.api.entity">IEntityLivingBase</a>&nbsp;caster,
<a href="IEntity.html" title="interface in noppes.npcs.api.entity">IEntity</a>&nbsp;target)</pre>
<div class="block">Sets the owner, positions the projectile at the caster's eye level, and launches it
toward the target entity using the entity's full launch sequence.
<p>
For player-owned projectiles, this <b>snaps the projectile to the owner's look-vector
position</b> before firing toward the target. The projectile's position set by
<code>createOrb</code>/etc. is overridden.
<p>
Use <a href="#fireAt(noppes.npcs.api.entity.IEntity)"><code>fireAt(IEntity)</code></a> instead if you want to launch from a specific custom position.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>caster</code> - the entity to fire from</dd>
<dd><code>target</code> - the entity to fire toward</dd>
</dl>
</li>
</ul>
</li>
</ul>
</section>
</li>
</ul>
</div>
</div>
</main>
<!-- ========= END OF CLASS DATA ========= -->
<footer role="contentinfo">
<nav role="navigation">
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a id="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../index.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage"><script> (function() { // Fix uppercase text in table cells // Javadoc 11: method names are in th[scope="row"] a, not td a function fixCase() { document.querySelectorAll("th[scope='row'] a, td a, .memberNameLink a").forEach(function(el) { var t = el.textContent.trim(); if (t.length > 2 && t === t.toUpperCase() && t.indexOf(" ") === -1) { el.textContent = t.toLowerCase(); } }); } // Correct navPadding = topNav height + subNav height // Uses !important to override jQuery's inline style function fixPadding() { var topNav = document.querySelector(".topNav"); var subNav = document.querySelector(".subNav"); var pad = document.querySelector(".navPadding"); if (!pad) return; var h = (topNav ? topNav.offsetHeight : 0) + (subNav ? subNav.offsetHeight : 0); if (h > 0) { pad.style.setProperty("padding-top", h + "px", "important"); } } document.addEventListener("DOMContentLoaded", function() { fixCase(); // Run fixPadding after jQuery has had its chance setTimeout(fixPadding, 0); setTimeout(fixPadding, 50); setTimeout(fixPadding, 200); // Use MutationObserver to permanently override any further jQuery writes var pad = document.querySelector(".navPadding"); if (pad) { var observer = new MutationObserver(function() { fixPadding(); }); observer.observe(pad, { attributes: true, attributeFilter: ["style"] }); } }); })(); </script></div>
</div>
<div class="subNav">
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../allclasses.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a id="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</nav>
</footer>
</body>
</html>