Files
CustomNPC-Plus/experimental/dev/noppes/npcs/api/entity/IEnergyBarrier.html
T
2026-03-11 20:06:44 +00:00

716 lines
34 KiB
HTML

<!DOCTYPE HTML>
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc -->
<title>IEnergyBarrier (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="IEnergyBarrier (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,"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};
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 IEnergyBarrier" class="title">Interface IEnergyBarrier&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="IEnergyDome.html" title="interface in noppes.npcs.api.entity">IEnergyDome</a>&lt;T&gt;</code>, <code><a href="IEnergyPanel.html" title="interface in noppes.npcs.api.entity">IEnergyPanel</a>&lt;T&gt;</code></dd>
</dl>
<hr>
<pre>public interface <span class="typeNameLabel">IEnergyBarrier&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 energy barrier entities (Dome, Panel).
Barriers are defensive structures that block incoming energy projectiles.
Extends IEnergyAbility for shared display/lightning/owner/charging methods.</div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ========== METHOD SUMMARY =========== -->
<section>
<ul class="blockList">
<li class="blockList"><a id="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t3" class="tableTab"><span><a href="javascript:show(4);">Abstract Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colSecond" scope="col">Method</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>float</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getAbsorbRadius()">getAbsorbRadius</a></span>()</code></th>
<td class="colLast">
<div class="block">Gets the absorb radius for this barrier.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getBarrierType()">getBarrierType</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns the barrier type: 0=Dome, 1=Panel</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>float</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getCurrentHealth()">getCurrentHealth</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>float</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getDefaultMultiplier()">getDefaultMultiplier</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getDuration()">getDuration</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>float</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getHealthPercent()">getHealthPercent</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="#getKnockbackStrength()">getKnockbackStrength</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="#getMaxHealth()">getMaxHealth</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getTicksAlive()">getTicksAlive</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isAbsorbing()">isAbsorbing</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns whether this barrier absorbs damage on behalf of its owner.</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isKnockbackEnabled()">isKnockbackEnabled</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isSolid()">isSolid</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isUseDuration()">isUseDuration</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i13" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isUseHealth()">isUseHealth</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i14" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setAbsorbing(boolean)">setAbsorbing</a></span>&#8203;(boolean&nbsp;absorbing)</code></th>
<td class="colLast">
<div class="block">Sets whether this barrier absorbs damage on behalf of its owner.</div>
</td>
</tr>
<tr id="i15" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setAbsorbRadius(float)">setAbsorbRadius</a></span>&#8203;(float&nbsp;radius)</code></th>
<td class="colLast">
<div class="block">Sets the absorb radius for this barrier.</div>
</td>
</tr>
<tr id="i16" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setCurrentHealth(float)">setCurrentHealth</a></span>&#8203;(float&nbsp;health)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i17" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setDefaultMultiplier(float)">setDefaultMultiplier</a></span>&#8203;(float&nbsp;multiplier)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i18" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setDuration(int)">setDuration</a></span>&#8203;(int&nbsp;ticks)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i19" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setKnockbackEnabled(boolean)">setKnockbackEnabled</a></span>&#8203;(boolean&nbsp;enabled)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i20" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setKnockbackStrength(float)">setKnockbackStrength</a></span>&#8203;(float&nbsp;strength)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i21" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setMaxHealth(float)">setMaxHealth</a></span>&#8203;(float&nbsp;maxHealth)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i22" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setSolid(boolean)">setSolid</a></span>&#8203;(boolean&nbsp;solid)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i23" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setUseDuration(boolean)">setUseDuration</a></span>&#8203;(boolean&nbsp;useDuration)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i24" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setUseHealth(boolean)">setUseHealth</a></span>&#8203;(boolean&nbsp;useHealth)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i25" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#syncClient()">syncClient</a></span>()</code></th>
<td class="colLast">
<div class="block">Sends all current visual and barrier-specific 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="getCurrentHealth()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getCurrentHealth</h4>
<pre class="methodSignature">float&nbsp;getCurrentHealth()</pre>
</li>
</ul>
<a id="setCurrentHealth(float)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setCurrentHealth</h4>
<pre class="methodSignature">void&nbsp;setCurrentHealth&#8203;(float&nbsp;health)</pre>
</li>
</ul>
<a id="getHealthPercent()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getHealthPercent</h4>
<pre class="methodSignature">float&nbsp;getHealthPercent()</pre>
</li>
</ul>
<a id="getMaxHealth()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMaxHealth</h4>
<pre class="methodSignature">float&nbsp;getMaxHealth()</pre>
</li>
</ul>
<a id="setMaxHealth(float)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setMaxHealth</h4>
<pre class="methodSignature">void&nbsp;setMaxHealth&#8203;(float&nbsp;maxHealth)</pre>
</li>
</ul>
<a id="isUseHealth()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isUseHealth</h4>
<pre class="methodSignature">boolean&nbsp;isUseHealth()</pre>
</li>
</ul>
<a id="setUseHealth(boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setUseHealth</h4>
<pre class="methodSignature">void&nbsp;setUseHealth&#8203;(boolean&nbsp;useHealth)</pre>
</li>
</ul>
<a id="getDuration()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDuration</h4>
<pre class="methodSignature">int&nbsp;getDuration()</pre>
</li>
</ul>
<a id="setDuration(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setDuration</h4>
<pre class="methodSignature">void&nbsp;setDuration&#8203;(int&nbsp;ticks)</pre>
</li>
</ul>
<a id="isUseDuration()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isUseDuration</h4>
<pre class="methodSignature">boolean&nbsp;isUseDuration()</pre>
</li>
</ul>
<a id="setUseDuration(boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setUseDuration</h4>
<pre class="methodSignature">void&nbsp;setUseDuration&#8203;(boolean&nbsp;useDuration)</pre>
</li>
</ul>
<a id="getTicksAlive()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTicksAlive</h4>
<pre class="methodSignature">int&nbsp;getTicksAlive()</pre>
</li>
</ul>
<a id="getDefaultMultiplier()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDefaultMultiplier</h4>
<pre class="methodSignature">float&nbsp;getDefaultMultiplier()</pre>
</li>
</ul>
<a id="setDefaultMultiplier(float)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setDefaultMultiplier</h4>
<pre class="methodSignature">void&nbsp;setDefaultMultiplier&#8203;(float&nbsp;multiplier)</pre>
</li>
</ul>
<a id="isSolid()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isSolid</h4>
<pre class="methodSignature">boolean&nbsp;isSolid()</pre>
</li>
</ul>
<a id="setSolid(boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setSolid</h4>
<pre class="methodSignature">void&nbsp;setSolid&#8203;(boolean&nbsp;solid)</pre>
</li>
</ul>
<a id="isKnockbackEnabled()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isKnockbackEnabled</h4>
<pre class="methodSignature">boolean&nbsp;isKnockbackEnabled()</pre>
</li>
</ul>
<a id="setKnockbackEnabled(boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setKnockbackEnabled</h4>
<pre class="methodSignature">void&nbsp;setKnockbackEnabled&#8203;(boolean&nbsp;enabled)</pre>
</li>
</ul>
<a id="getKnockbackStrength()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getKnockbackStrength</h4>
<pre class="methodSignature">float&nbsp;getKnockbackStrength()</pre>
</li>
</ul>
<a id="setKnockbackStrength(float)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setKnockbackStrength</h4>
<pre class="methodSignature">void&nbsp;setKnockbackStrength&#8203;(float&nbsp;strength)</pre>
</li>
</ul>
<a id="isAbsorbing()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isAbsorbing</h4>
<pre class="methodSignature">boolean&nbsp;isAbsorbing()</pre>
<div class="block">Returns whether this barrier absorbs damage on behalf of its owner.
When absorbing is enabled, incoming damage to the barrier's owner is redirected
to the barrier instead, subject to the absorb radius check.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><code>true</code> if the barrier absorbs the owner's incoming damage</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="#getAbsorbRadius()"><code>getAbsorbRadius()</code></a></dd>
</dl>
</li>
</ul>
<a id="setAbsorbing(boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setAbsorbing</h4>
<pre class="methodSignature">void&nbsp;setAbsorbing&#8203;(boolean&nbsp;absorbing)</pre>
<div class="block">Sets whether this barrier absorbs damage on behalf of its owner.
When absorbing is enabled, incoming damage to the barrier's owner is redirected
to the barrier instead, subject to the absorb radius check.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>absorbing</code> - <code>true</code> to enable damage absorption for the owner</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="#setAbsorbRadius(float)"><code>setAbsorbRadius(float)</code></a></dd>
</dl>
</li>
</ul>
<a id="getAbsorbRadius()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getAbsorbRadius</h4>
<pre class="methodSignature">float&nbsp;getAbsorbRadius()</pre>
<div class="block">Gets the absorb radius for this barrier.
The absorb radius determines the maximum distance from the barrier's current
position at which the owner's incoming damage will still be redirected to the barrier.
This check uses the barrier entity's live position, so it works correctly with
moving barriers (following domes, moving walls, shields, etc.).
<ul>
<li><code>-1</code> = No distance limit. Damage is always absorbed regardless of distance.</li>
<li><code>0</code> = Uses the barrier's own geometric extent as the effective radius.
<ul>
<li>Domes: the dome radius (sphere radius in blocks).</li>
<li>Panels: <code>(max(width, height) * 0.5 + 1.0) * 3</code>
(i.e. <code>max(width, height) * 1.5 + 3.0</code> blocks).</li>
</ul>
</li>
<li>Positive values = The owner must be within this many blocks of the barrier entity.</li>
</ul></div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the absorb radius in blocks, or <code>-1</code> for unlimited, or <code>0</code> for barrier extent</dd>
</dl>
</li>
</ul>
<a id="setAbsorbRadius(float)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setAbsorbRadius</h4>
<pre class="methodSignature">void&nbsp;setAbsorbRadius&#8203;(float&nbsp;radius)</pre>
<div class="block">Sets the absorb radius for this barrier.
The absorb radius determines the maximum distance from the barrier's current
position at which the owner's incoming damage will still be redirected to the barrier.
This check uses the barrier entity's live position, so it works correctly with
moving barriers (following domes, moving walls, shields, etc.).
<ul>
<li><code>-1</code> = No distance limit. Damage is always absorbed regardless of distance.</li>
<li><code>0</code> = Uses the barrier's own geometric extent as the effective radius.
<ul>
<li>Domes: the dome radius (sphere radius in blocks).</li>
<li>Panels: <code>(max(width, height) * 0.5 + 1.0) * 3</code>
(i.e. <code>max(width, height) * 1.5 + 3.0</code> blocks).</li>
</ul>
</li>
<li>Positive values = The owner must be within this many blocks of the barrier entity.</li>
</ul></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>radius</code> - the absorb radius in blocks, or <code>-1</code> for unlimited, or <code>0</code> for barrier extent</dd>
</dl>
</li>
</ul>
<a id="getBarrierType()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getBarrierType</h4>
<pre class="methodSignature">int&nbsp;getBarrierType()</pre>
<div class="block">Returns the barrier type: 0=Dome, 1=Panel</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the barrier type ordinal</dd>
</dl>
</li>
</ul>
<a id="syncClient()">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>syncClient</h4>
<pre class="methodSignature">void&nbsp;syncClient()</pre>
<div class="block">Sends all current visual and barrier-specific data to tracking clients.
<p>
Call this <b>after</b> making batch changes to properties like colors, alpha,
lightning, dome radius, panel dimensions, etc. This sends a single packet
instead of one per setter call.
<p>
Example:
<pre>
dome.setInnerColor(0xFF0000);
dome.setDomeRadius(5.0);
dome.syncClient(); // one packet for all changes
</pre></div>
</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>