mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-13 23:04:08 +00:00
584 lines
27 KiB
HTML
584 lines
27 KiB
HTML
<!DOCTYPE HTML>
|
|
<!-- NewPage -->
|
|
<html lang="en">
|
|
<head>
|
|
<!-- Generated by javadoc -->
|
|
<title>IEnergyHandler (CustomNPC-Plus 1.11 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="IEnergyHandler (CustomNPC-Plus 1.11 API)";
|
|
}
|
|
}
|
|
catch(err) {
|
|
}
|
|
//-->
|
|
var data = {"i0":6,"i1":6,"i2":6,"i3":6,"i4":6,"i5":6,"i6":6,"i7":6,"i8":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 Classes</a></li>
|
|
</ul>
|
|
<ul class="navListSearch">
|
|
<li><label for="search">SEARCH:</label>
|
|
<input type="text" id="search" value="search" disabled="disabled">
|
|
<input type="reset" id="reset" value="reset" disabled="disabled">
|
|
</li>
|
|
</ul>
|
|
<div>
|
|
<script type="text/javascript"><!--
|
|
allClassesLink = document.getElementById("allclasses_navbar_top");
|
|
if(window==top) {
|
|
allClassesLink.style.display = "block";
|
|
}
|
|
else {
|
|
allClassesLink.style.display = "none";
|
|
}
|
|
//-->
|
|
</script>
|
|
<noscript>
|
|
<div>JavaScript is disabled on your browser.</div>
|
|
</noscript>
|
|
</div>
|
|
<div>
|
|
<ul class="subNavList">
|
|
<li>Summary: </li>
|
|
<li>Nested | </li>
|
|
<li>Field | </li>
|
|
<li>Constr | </li>
|
|
<li><a href="#method.summary">Method</a></li>
|
|
</ul>
|
|
<ul class="subNavList">
|
|
<li>Detail: </li>
|
|
<li>Field | </li>
|
|
<li>Constr | </li>
|
|
<li><a href="#method.detail">Method</a></li>
|
|
</ul>
|
|
</div>
|
|
<a id="skip.navbar.top">
|
|
<!-- -->
|
|
</a></div>
|
|
<!-- ========= END OF TOP NAVBAR ========= -->
|
|
</div>
|
|
<div class="navPadding"> </div>
|
|
<script type="text/javascript"><!--
|
|
$('.navPadding').css('padding-top', $('.fixedNav').css("height"));
|
|
//-->
|
|
</script>
|
|
</nav>
|
|
</header>
|
|
<!-- ======== START OF CLASS DATA ======== -->
|
|
<main role="main">
|
|
<div class="header">
|
|
<div class="subTitle"><span class="packageLabelInType">Package</span> <a href="package-summary.html">noppes.npcs.api</a></div>
|
|
<h2 title="Interface IEnergyHandler" class="title">Interface IEnergyHandler</h2>
|
|
</div>
|
|
<div class="contentContainer">
|
|
<div class="description">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<hr>
|
|
<pre>public interface <span class="typeNameLabel">IEnergyHandler</span></pre>
|
|
<div class="block">Central controller for creating energy entities and routing energy damage.
|
|
Access via API.getEnergyController().
|
|
|
|
All factory methods create entities that are NOT spawned in the world.
|
|
Configure the entity, then call fire() (projectiles) or spawn() (zones/sweepers/panels)
|
|
to place it in the world.</div>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="summary">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<!-- ========== METHOD SUMMARY =========== -->
|
|
<section>
|
|
<ul class="blockList">
|
|
<li class="blockList"><a id="method.summary">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Method Summary</h3>
|
|
<table class="memberSummary">
|
|
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t3" class="tableTab"><span><a href="javascript:show(4);">Abstract Methods</a></span><span class="tabEnd"> </span></span></caption>
|
|
<tr>
|
|
<th class="colFirst" scope="col">Modifier and Type</th>
|
|
<th class="colSecond" scope="col">Method</th>
|
|
<th class="colLast" scope="col">Description</th>
|
|
</tr>
|
|
<tr id="i0" class="altColor">
|
|
<td class="colFirst"><code><a href="entity/IEnergyBeam.html" title="interface in noppes.npcs.api.entity">IEnergyBeam</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#createBeam(noppes.npcs.api.IWorld,noppes.npcs.api.entity.IEntity,double,double,double,float,float)">createBeam</a></span>​(<a href="IWorld.html" title="interface in noppes.npcs.api">IWorld</a> world,
|
|
<a href="entity/IEntity.html" title="interface in noppes.npcs.api.entity">IEntity</a> owner,
|
|
double x,
|
|
double y,
|
|
double z,
|
|
float beamWidth,
|
|
float headSize)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Create an energy beam projectile.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i1" class="rowColor">
|
|
<td class="colFirst"><code><a href="entity/IEnergyDisc.html" title="interface in noppes.npcs.api.entity">IEnergyDisc</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#createDisc(noppes.npcs.api.IWorld,noppes.npcs.api.entity.IEntity,double,double,double,float,float)">createDisc</a></span>​(<a href="IWorld.html" title="interface in noppes.npcs.api">IWorld</a> world,
|
|
<a href="entity/IEntity.html" title="interface in noppes.npcs.api.entity">IEntity</a> owner,
|
|
double x,
|
|
double y,
|
|
double z,
|
|
float radius,
|
|
float thickness)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Create an energy disc projectile.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i2" class="altColor">
|
|
<td class="colFirst"><code><a href="entity/IEnergyExplosion.html" title="interface in noppes.npcs.api.entity">IEnergyExplosion</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#createExplosion(noppes.npcs.api.IWorld,noppes.npcs.api.entity.IEntity,double,double,double,float)">createExplosion</a></span>​(<a href="IWorld.html" title="interface in noppes.npcs.api">IWorld</a> world,
|
|
<a href="entity/IEntity.html" title="interface in noppes.npcs.api.entity">IEntity</a> owner,
|
|
double x,
|
|
double y,
|
|
double z,
|
|
float radius)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Create an energy explosion entity.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i3" class="rowColor">
|
|
<td class="colFirst"><code><a href="entity/IEnergyZone.html" title="interface in noppes.npcs.api.entity">IEnergyZone</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#createHazard(noppes.npcs.api.IWorld,noppes.npcs.api.entity.IEntity,double,double,double)">createHazard</a></span>​(<a href="IWorld.html" title="interface in noppes.npcs.api">IWorld</a> world,
|
|
<a href="entity/IEntity.html" title="interface in noppes.npcs.api.entity">IEntity</a> owner,
|
|
double x,
|
|
double y,
|
|
double z)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Create a hazard zone entity with defaults.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i4" class="altColor">
|
|
<td class="colFirst"><code><a href="entity/IEnergyLaser.html" title="interface in noppes.npcs.api.entity">IEnergyLaser</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#createLaser(noppes.npcs.api.IWorld,noppes.npcs.api.entity.IEntity,double,double,double,float)">createLaser</a></span>​(<a href="IWorld.html" title="interface in noppes.npcs.api">IWorld</a> world,
|
|
<a href="entity/IEntity.html" title="interface in noppes.npcs.api.entity">IEntity</a> owner,
|
|
double x,
|
|
double y,
|
|
double z,
|
|
float laserWidth)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Create an energy laser projectile.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i5" class="rowColor">
|
|
<td class="colFirst"><code><a href="entity/IEnergyOrb.html" title="interface in noppes.npcs.api.entity">IEnergyOrb</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#createOrb(noppes.npcs.api.IWorld,noppes.npcs.api.entity.IEntity,double,double,double,float)">createOrb</a></span>​(<a href="IWorld.html" title="interface in noppes.npcs.api">IWorld</a> world,
|
|
<a href="entity/IEntity.html" title="interface in noppes.npcs.api.entity">IEntity</a> owner,
|
|
double x,
|
|
double y,
|
|
double z,
|
|
float size)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Create an energy orb projectile.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i6" class="altColor">
|
|
<td class="colFirst"><code><a href="entity/IEnergyPanel.html" title="interface in noppes.npcs.api.entity">IEnergyPanel</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#createPanel(noppes.npcs.api.IWorld,noppes.npcs.api.entity.IEntity,double,double,double)">createPanel</a></span>​(<a href="IWorld.html" title="interface in noppes.npcs.api">IWorld</a> world,
|
|
<a href="entity/IEntity.html" title="interface in noppes.npcs.api.entity">IEntity</a> owner,
|
|
double x,
|
|
double y,
|
|
double z)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Create a panel entity with defaults.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i7" class="rowColor">
|
|
<td class="colFirst"><code><a href="entity/IEnergySweeper.html" title="interface in noppes.npcs.api.entity">IEnergySweeper</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#createSweeper(noppes.npcs.api.IWorld,noppes.npcs.api.entity.IEntity,double,double,double)">createSweeper</a></span>​(<a href="IWorld.html" title="interface in noppes.npcs.api">IWorld</a> world,
|
|
<a href="entity/IEntity.html" title="interface in noppes.npcs.api.entity">IEntity</a> owner,
|
|
double x,
|
|
double y,
|
|
double z)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Create a sweeper entity with defaults.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i8" class="altColor">
|
|
<td class="colFirst"><code><a href="entity/IEnergyZone.html" title="interface in noppes.npcs.api.entity">IEnergyZone</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#createTrap(noppes.npcs.api.IWorld,noppes.npcs.api.entity.IEntity,double,double,double)">createTrap</a></span>​(<a href="IWorld.html" title="interface in noppes.npcs.api">IWorld</a> world,
|
|
<a href="entity/IEntity.html" title="interface in noppes.npcs.api.entity">IEntity</a> owner,
|
|
double x,
|
|
double y,
|
|
double z)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Create a trap zone entity with defaults.</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</li>
|
|
</ul>
|
|
</section>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="details">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<!-- ============ METHOD DETAIL ========== -->
|
|
<section>
|
|
<ul class="blockList">
|
|
<li class="blockList"><a id="method.detail">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Method Detail</h3>
|
|
<a id="createOrb(noppes.npcs.api.IWorld,noppes.npcs.api.entity.IEntity,double,double,double,float)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>createOrb</h4>
|
|
<pre class="methodSignature"><a href="entity/IEnergyOrb.html" title="interface in noppes.npcs.api.entity">IEnergyOrb</a> createOrb​(<a href="IWorld.html" title="interface in noppes.npcs.api">IWorld</a> world,
|
|
<a href="entity/IEntity.html" title="interface in noppes.npcs.api.entity">IEntity</a> owner,
|
|
double x,
|
|
double y,
|
|
double z,
|
|
float size)</pre>
|
|
<div class="block">Create an energy orb projectile. Not spawned until fire() is called.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>world</code> - the world</dd>
|
|
<dd><code>owner</code> - the owning entity</dd>
|
|
<dd><code>x</code> - X position</dd>
|
|
<dd><code>y</code> - Y position</dd>
|
|
<dd><code>z</code> - Z position</dd>
|
|
<dd><code>size</code> - the orb size</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the energy orb entity</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="createBeam(noppes.npcs.api.IWorld,noppes.npcs.api.entity.IEntity,double,double,double,float,float)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>createBeam</h4>
|
|
<pre class="methodSignature"><a href="entity/IEnergyBeam.html" title="interface in noppes.npcs.api.entity">IEnergyBeam</a> createBeam​(<a href="IWorld.html" title="interface in noppes.npcs.api">IWorld</a> world,
|
|
<a href="entity/IEntity.html" title="interface in noppes.npcs.api.entity">IEntity</a> owner,
|
|
double x,
|
|
double y,
|
|
double z,
|
|
float beamWidth,
|
|
float headSize)</pre>
|
|
<div class="block">Create an energy beam projectile. Not spawned until fire() is called.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>world</code> - the world</dd>
|
|
<dd><code>owner</code> - the owning entity</dd>
|
|
<dd><code>x</code> - X position</dd>
|
|
<dd><code>y</code> - Y position</dd>
|
|
<dd><code>z</code> - Z position</dd>
|
|
<dd><code>beamWidth</code> - the beam width</dd>
|
|
<dd><code>headSize</code> - the head size</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the energy beam entity</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="createDisc(noppes.npcs.api.IWorld,noppes.npcs.api.entity.IEntity,double,double,double,float,float)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>createDisc</h4>
|
|
<pre class="methodSignature"><a href="entity/IEnergyDisc.html" title="interface in noppes.npcs.api.entity">IEnergyDisc</a> createDisc​(<a href="IWorld.html" title="interface in noppes.npcs.api">IWorld</a> world,
|
|
<a href="entity/IEntity.html" title="interface in noppes.npcs.api.entity">IEntity</a> owner,
|
|
double x,
|
|
double y,
|
|
double z,
|
|
float radius,
|
|
float thickness)</pre>
|
|
<div class="block">Create an energy disc projectile. Not spawned until fire() is called.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>world</code> - the world</dd>
|
|
<dd><code>owner</code> - the owning entity</dd>
|
|
<dd><code>x</code> - X position</dd>
|
|
<dd><code>y</code> - Y position</dd>
|
|
<dd><code>z</code> - Z position</dd>
|
|
<dd><code>radius</code> - the disc radius</dd>
|
|
<dd><code>thickness</code> - the disc thickness</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the energy disc entity</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="createLaser(noppes.npcs.api.IWorld,noppes.npcs.api.entity.IEntity,double,double,double,float)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>createLaser</h4>
|
|
<pre class="methodSignature"><a href="entity/IEnergyLaser.html" title="interface in noppes.npcs.api.entity">IEnergyLaser</a> createLaser​(<a href="IWorld.html" title="interface in noppes.npcs.api">IWorld</a> world,
|
|
<a href="entity/IEntity.html" title="interface in noppes.npcs.api.entity">IEntity</a> owner,
|
|
double x,
|
|
double y,
|
|
double z,
|
|
float laserWidth)</pre>
|
|
<div class="block">Create an energy laser projectile. Not spawned until fire() is called.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>world</code> - the world</dd>
|
|
<dd><code>owner</code> - the owning entity</dd>
|
|
<dd><code>x</code> - X position</dd>
|
|
<dd><code>y</code> - Y position</dd>
|
|
<dd><code>z</code> - Z position</dd>
|
|
<dd><code>laserWidth</code> - the laser width</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the energy laser entity</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="createHazard(noppes.npcs.api.IWorld,noppes.npcs.api.entity.IEntity,double,double,double)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>createHazard</h4>
|
|
<pre class="methodSignature"><a href="entity/IEnergyZone.html" title="interface in noppes.npcs.api.entity">IEnergyZone</a> createHazard​(<a href="IWorld.html" title="interface in noppes.npcs.api">IWorld</a> world,
|
|
<a href="entity/IEntity.html" title="interface in noppes.npcs.api.entity">IEntity</a> owner,
|
|
double x,
|
|
double y,
|
|
double z)</pre>
|
|
<div class="block">Create a hazard zone entity with defaults. Not spawned until spawn() is called.
|
|
Hazards deal continuous damage to entities within the zone.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>world</code> - the world</dd>
|
|
<dd><code>owner</code> - the owning entity</dd>
|
|
<dd><code>x</code> - X position</dd>
|
|
<dd><code>y</code> - Y position</dd>
|
|
<dd><code>z</code> - Z position</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the energy zone entity</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="createTrap(noppes.npcs.api.IWorld,noppes.npcs.api.entity.IEntity,double,double,double)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>createTrap</h4>
|
|
<pre class="methodSignature"><a href="entity/IEnergyZone.html" title="interface in noppes.npcs.api.entity">IEnergyZone</a> createTrap​(<a href="IWorld.html" title="interface in noppes.npcs.api">IWorld</a> world,
|
|
<a href="entity/IEntity.html" title="interface in noppes.npcs.api.entity">IEntity</a> owner,
|
|
double x,
|
|
double y,
|
|
double z)</pre>
|
|
<div class="block">Create a trap zone entity with defaults. Not spawned until spawn() is called.
|
|
Traps trigger when entities enter and deal burst damage.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>world</code> - the world</dd>
|
|
<dd><code>owner</code> - the owning entity</dd>
|
|
<dd><code>x</code> - X position</dd>
|
|
<dd><code>y</code> - Y position</dd>
|
|
<dd><code>z</code> - Z position</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the energy zone entity</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="createSweeper(noppes.npcs.api.IWorld,noppes.npcs.api.entity.IEntity,double,double,double)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>createSweeper</h4>
|
|
<pre class="methodSignature"><a href="entity/IEnergySweeper.html" title="interface in noppes.npcs.api.entity">IEnergySweeper</a> createSweeper​(<a href="IWorld.html" title="interface in noppes.npcs.api">IWorld</a> world,
|
|
<a href="entity/IEntity.html" title="interface in noppes.npcs.api.entity">IEntity</a> owner,
|
|
double x,
|
|
double y,
|
|
double z)</pre>
|
|
<div class="block">Create a sweeper entity with defaults. Not spawned until spawn() is called.
|
|
Sweepers rotate a beam that damages entities in its path.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>world</code> - the world</dd>
|
|
<dd><code>owner</code> - the owning entity</dd>
|
|
<dd><code>x</code> - X position</dd>
|
|
<dd><code>y</code> - Y position</dd>
|
|
<dd><code>z</code> - Z position</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the energy sweeper entity</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="createPanel(noppes.npcs.api.IWorld,noppes.npcs.api.entity.IEntity,double,double,double)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>createPanel</h4>
|
|
<pre class="methodSignature"><a href="entity/IEnergyPanel.html" title="interface in noppes.npcs.api.entity">IEnergyPanel</a> createPanel​(<a href="IWorld.html" title="interface in noppes.npcs.api">IWorld</a> world,
|
|
<a href="entity/IEntity.html" title="interface in noppes.npcs.api.entity">IEntity</a> owner,
|
|
double x,
|
|
double y,
|
|
double z)</pre>
|
|
<div class="block">Create a panel entity with defaults. Not spawned until spawn() is called.
|
|
Panels are flat energy barriers that can deal damage on contact.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>world</code> - the world</dd>
|
|
<dd><code>owner</code> - the owning entity</dd>
|
|
<dd><code>x</code> - X position</dd>
|
|
<dd><code>y</code> - Y position</dd>
|
|
<dd><code>z</code> - Z position</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the energy panel entity</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="createExplosion(noppes.npcs.api.IWorld,noppes.npcs.api.entity.IEntity,double,double,double,float)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>createExplosion</h4>
|
|
<pre class="methodSignature"><a href="entity/IEnergyExplosion.html" title="interface in noppes.npcs.api.entity">IEnergyExplosion</a> createExplosion​(<a href="IWorld.html" title="interface in noppes.npcs.api">IWorld</a> world,
|
|
<a href="entity/IEntity.html" title="interface in noppes.npcs.api.entity">IEntity</a> owner,
|
|
double x,
|
|
double y,
|
|
double z,
|
|
float radius)</pre>
|
|
<div class="block">Create an energy explosion entity. Not spawned until spawn() is called.
|
|
Visual-only by default. Set damage > 0 to enable area damage with falloff.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>world</code> - the world</dd>
|
|
<dd><code>owner</code> - the owning entity</dd>
|
|
<dd><code>x</code> - X position</dd>
|
|
<dd><code>y</code> - Y position</dd>
|
|
<dd><code>z</code> - Z position</dd>
|
|
<dd><code>radius</code> - the explosion radius</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the energy explosion entity</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 Classes</a></li>
|
|
</ul>
|
|
<div>
|
|
<script type="text/javascript"><!--
|
|
allClassesLink = document.getElementById("allclasses_navbar_bottom");
|
|
if(window==top) {
|
|
allClassesLink.style.display = "block";
|
|
}
|
|
else {
|
|
allClassesLink.style.display = "none";
|
|
}
|
|
//-->
|
|
</script>
|
|
<noscript>
|
|
<div>JavaScript is disabled on your browser.</div>
|
|
</noscript>
|
|
</div>
|
|
<div>
|
|
<ul class="subNavList">
|
|
<li>Summary: </li>
|
|
<li>Nested | </li>
|
|
<li>Field | </li>
|
|
<li>Constr | </li>
|
|
<li><a href="#method.summary">Method</a></li>
|
|
</ul>
|
|
<ul class="subNavList">
|
|
<li>Detail: </li>
|
|
<li>Field | </li>
|
|
<li>Constr | </li>
|
|
<li><a href="#method.detail">Method</a></li>
|
|
</ul>
|
|
</div>
|
|
<a id="skip.navbar.bottom">
|
|
<!-- -->
|
|
</a></div>
|
|
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
|
</nav>
|
|
</footer>
|
|
</body>
|
|
</html>
|