mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-11 23:07:37 +00:00
1513 lines
64 KiB
HTML
1513 lines
64 KiB
HTML
<!DOCTYPE HTML>
|
|
<!-- NewPage -->
|
|
<html lang="en">
|
|
<head>
|
|
<!-- Generated by javadoc (11.0.27) on Tue Oct 28 02:00:43 EDT 2025 -->
|
|
<title>IEntityLivingBase</title>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
<meta name="dc.created" content="2025-10-28">
|
|
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
|
|
<link rel="stylesheet" type="text/css" href="../../../../jquery/jquery-ui.min.css" title="Style">
|
|
<link rel="stylesheet" type="text/css" href="../../../../jquery-ui.overrides.css" title="Style">
|
|
<script type="text/javascript" src="../../../../script.js"></script>
|
|
<script type="text/javascript" src="../../../../jquery/jszip/dist/jszip.min.js"></script>
|
|
<script type="text/javascript" src="../../../../jquery/jszip-utils/dist/jszip-utils.min.js"></script>
|
|
<!--[if IE]>
|
|
<script type="text/javascript" src="../../../../jquery/jszip-utils/dist/jszip-utils-ie.min.js"></script>
|
|
<![endif]-->
|
|
<script type="text/javascript" src="../../../../jquery/jquery-3.7.1.min.js"></script>
|
|
<script type="text/javascript" src="../../../../jquery/jquery-ui.min.js"></script>
|
|
</head>
|
|
<body>
|
|
<script type="text/javascript"><!--
|
|
try {
|
|
if (location.href.indexOf('is-external=true') == -1) {
|
|
parent.document.title="IEntityLivingBase";
|
|
}
|
|
}
|
|
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};
|
|
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-files/index-1.html">Index</a></li>
|
|
<li><a href="../../../../help-doc.html">Help</a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="subNav">
|
|
<ul class="navList" id="allclasses_navbar_top">
|
|
<li><a href="../../../../allclasses.html">All Classes</a></li>
|
|
</ul>
|
|
<ul class="navListSearch">
|
|
<li><label for="search">SEARCH:</label>
|
|
<input type="text" id="search" value="search" disabled="disabled">
|
|
<input type="reset" id="reset" value="reset" disabled="disabled">
|
|
</li>
|
|
</ul>
|
|
<div>
|
|
<script type="text/javascript"><!--
|
|
allClassesLink = document.getElementById("allclasses_navbar_top");
|
|
if(window==top) {
|
|
allClassesLink.style.display = "block";
|
|
}
|
|
else {
|
|
allClassesLink.style.display = "none";
|
|
}
|
|
//-->
|
|
</script>
|
|
<noscript>
|
|
<div>JavaScript is disabled on your browser.</div>
|
|
</noscript>
|
|
</div>
|
|
<div>
|
|
<ul class="subNavList">
|
|
<li>Summary: </li>
|
|
<li>Nested | </li>
|
|
<li>Field | </li>
|
|
<li>Constr | </li>
|
|
<li><a href="#method.summary">Method</a></li>
|
|
</ul>
|
|
<ul class="subNavList">
|
|
<li>Detail: </li>
|
|
<li>Field | </li>
|
|
<li>Constr | </li>
|
|
<li><a href="#method.detail">Method</a></li>
|
|
</ul>
|
|
</div>
|
|
<a id="skip.navbar.top">
|
|
<!-- -->
|
|
</a></div>
|
|
<!-- ========= END OF TOP NAVBAR ========= -->
|
|
</div>
|
|
<div class="navPadding"> </div>
|
|
<script type="text/javascript"><!--
|
|
$('.navPadding').css('padding-top', $('.fixedNav').css("height"));
|
|
//-->
|
|
</script>
|
|
</nav>
|
|
</header>
|
|
<!-- ======== START OF CLASS DATA ======== -->
|
|
<main role="main">
|
|
<div class="header">
|
|
<div class="subTitle"><span class="packageLabelInType">Package</span> <a href="package-summary.html">noppes.npcs.api.entity</a></div>
|
|
<h2 title="Interface IEntityLivingBase" class="title">Interface IEntityLivingBase<T extends net.minecraft.entity.EntityLivingBase></h2>
|
|
</div>
|
|
<div class="contentContainer">
|
|
<div class="description">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<dl>
|
|
<dt><span class="paramLabel">Type Parameters:</span></dt>
|
|
<dd><code>T</code> - the underlying Minecraft EntityLivingBase type.</dd>
|
|
</dl>
|
|
<dl>
|
|
<dt>All Superinterfaces:</dt>
|
|
<dd><code><a href="IEntity.html" title="interface in noppes.npcs.api.entity">IEntity</a><T></code></dd>
|
|
</dl>
|
|
<dl>
|
|
<dt>All Known Subinterfaces:</dt>
|
|
<dd><code><a href="IAnimal.html" title="interface in noppes.npcs.api.entity">IAnimal</a><T></code>, <code><a href="ICustomNpc.html" title="interface in noppes.npcs.api.entity">ICustomNpc</a><T></code>, <code><a href="IDBCPlayer.html" title="interface in noppes.npcs.api.entity">IDBCPlayer</a></code>, <code><a href="IEntityLiving.html" title="interface in noppes.npcs.api.entity">IEntityLiving</a><T></code>, <code><a href="IMonster.html" title="interface in noppes.npcs.api.entity">IMonster</a><T></code>, <code><a href="IPixelmon.html" title="interface in noppes.npcs.api.entity">IPixelmon</a><T></code>, <code><a href="IPlayer.html" title="interface in noppes.npcs.api.entity">IPlayer</a><T></code>, <code><a href="IVillager.html" title="interface in noppes.npcs.api.entity">IVillager</a><T></code></dd>
|
|
</dl>
|
|
<hr>
|
|
<pre>public interface <span class="typeNameLabel">IEntityLivingBase<T extends net.minecraft.entity.EntityLivingBase></span>
|
|
extends <a href="IEntity.html" title="interface in noppes.npcs.api.entity">IEntity</a><T></pre>
|
|
<div class="block">Represents a living entity (mob, NPC, etc.) with additional methods to manage health,
|
|
damage, targeting, vision, potion effects, equipment, and various attributes.
|
|
<p>
|
|
This interface extends <a href="IEntity.html" title="interface in noppes.npcs.api.entity"><code>IEntity</code></a> and provides functionality specific to living entities.</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>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#addPotionEffect(int,int,int,boolean)">addPotionEffect</a></span>​(int effect,
|
|
int duration,
|
|
int strength,
|
|
boolean hideParticles)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Applies a potion effect to the entity.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i1" class="rowColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#canBreatheUnderwater()">canBreatheUnderwater</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Checks whether the entity can breathe underwater.</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="#clearPotionEffects()">clearPotionEffects</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Clears all active potion effects from the entity.</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="#dismountEntity(noppes.npcs.api.entity.IEntity)">dismountEntity</a></span>​(<a href="IEntity.html" title="interface in noppes.npcs.api.entity">IEntity</a> entity)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Dismounts the specified entity from this entity.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i4" class="altColor">
|
|
<td class="colFirst"><code>float</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getAbsorptionAmount()">getAbsorptionAmount</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns the absorption (extra health) amount.</div>
|
|
</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="#getAIMoveSpeed()">getAIMoveSpeed</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns the AI move speed of the entity.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i6" class="altColor">
|
|
<td class="colFirst"><code><a href="../item/IItemStack.html" title="interface in noppes.npcs.api.item">IItemStack</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getArmor(int)">getArmor</a></span>​(int slot)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns the armor piece in the given slot.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i7" class="rowColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getArrowCountInEntity()">getArrowCountInEntity</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns the number of arrows currently embedded in the entity.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i8" class="altColor">
|
|
<td class="colFirst"><code><a href="IEntityLivingBase.html" title="interface in noppes.npcs.api.entity">IEntityLivingBase</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getAttackTarget()">getAttackTarget</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns the current attack target.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i9" class="rowColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getAttackTargetTime()">getAttackTargetTime</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns the time (in ticks) for which the current attack target has been active.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i10" class="altColor">
|
|
<td class="colFirst"><code>double</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getFollowRange()">getFollowRange</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns the follow range attribute of the entity.</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="#getHealth()">getHealth</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns the entity's current health.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i12" class="altColor">
|
|
<td class="colFirst"><code><a href="../item/IItemStack.html" title="interface in noppes.npcs.api.item">IItemStack</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getHeldItem()">getHeldItem</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns the item the entity is currently holding.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i13" class="rowColor">
|
|
<td class="colFirst"><code>double</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getKnockbackResistance()">getKnockbackResistance</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns the knockback resistance of the entity.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i14" 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="#getLastAttacker()">getLastAttacker</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns the last attacker of this entity.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i15" class="rowColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getLastAttackerTime()">getLastAttackerTime</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns the time (in ticks) since the entity was last attacked.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i16" class="altColor">
|
|
<td class="colFirst"><code><a href="../IBlock.html" title="interface in noppes.npcs.api">IBlock</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getLookingAtBlock(int)">getLookingAtBlock</a></span>​(int maxDistance)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns the first block found by following the entity's look vector,
|
|
using default parameters (stop on block).</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i17" class="rowColor">
|
|
<td class="colFirst"><code><a href="../IBlock.html" title="interface in noppes.npcs.api">IBlock</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getLookingAtBlock(int,boolean,boolean,boolean)">getLookingAtBlock</a></span>​(int maxDistance,
|
|
boolean stopOnBlock,
|
|
boolean stopOnLiquid,
|
|
boolean stopOnCollision)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns the block that the entity is looking at, with detailed stopping conditions.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i18" 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="#getLookingAtEntities(int,double,double)">getLookingAtEntities</a></span>​(int maxDistance,
|
|
double offset,
|
|
double range)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns an array of entities intersecting with the entity's look vector using default stop conditions.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i19" class="rowColor">
|
|
<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="#getLookingAtEntities(int,double,double,boolean,boolean,boolean)">getLookingAtEntities</a></span>​(int maxDistance,
|
|
double offset,
|
|
double range,
|
|
boolean stopOnBlock,
|
|
boolean stopOnLiquid,
|
|
boolean stopOnCollision)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns an array of entities intersecting with the entity's look vector with detailed stop conditions.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i20" 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="#getLookingAtEntities(noppes.npcs.api.entity.IEntity%5B%5D,int,double,double,boolean,boolean,boolean)">getLookingAtEntities</a></span>​(<a href="IEntity.html" title="interface in noppes.npcs.api.entity">IEntity</a>[] ignoreEntities,
|
|
int maxDistance,
|
|
double offset,
|
|
double range,
|
|
boolean stopOnBlock,
|
|
boolean stopOnLiquid,
|
|
boolean stopOnCollision)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns an array of entities intersecting with the entity's look vector.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i21" class="rowColor">
|
|
<td class="colFirst"><code><a href="../IPos.html" title="interface in noppes.npcs.api">IPos</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getLookingAtPos(int)">getLookingAtPos</a></span>​(int maxDistance)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns the position (IPos) corresponding to the final obstructed point along the entity's look vector,
|
|
using default parameters (stop on block).</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i22" class="altColor">
|
|
<td class="colFirst"><code><a href="../IPos.html" title="interface in noppes.npcs.api">IPos</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getLookingAtPos(int,boolean,boolean,boolean)">getLookingAtPos</a></span>​(int maxDistance,
|
|
boolean stopOnBlock,
|
|
boolean stopOnLiquid,
|
|
boolean stopOnCollision)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns the position (IPos) corresponding to the final obstructed point along the entity's look vector,
|
|
with detailed stopping conditions.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i23" class="rowColor">
|
|
<td class="colFirst"><code><a href="../IPos.html" title="interface in noppes.npcs.api">IPos</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getLookVector()">getLookVector</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns the look vector of this entity as an IPos object.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i24" class="altColor">
|
|
<td class="colFirst"><code>double</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getMaxHealth()">getMaxHealth</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns the entity's maximum health.</div>
|
|
</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="#getMaxHurtTime()">getMaxHurtTime</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns the maximum hurt time (hurt resistance time) for this entity.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i26" class="altColor">
|
|
<td class="colFirst"><code><a href="IEntityLivingBase.html" title="type parameter in IEntityLivingBase">T</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getMCEntity()">getMCEntity</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Expert use only.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i27" class="rowColor">
|
|
<td class="colFirst"><code>double</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getMeleeStrength()">getMeleeStrength</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns the melee strength (attack damage) of the entity.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i28" class="altColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getPotionEffect(int)">getPotionEffect</a></span>​(int effect)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns the amplifier of the specified potion effect.</div>
|
|
</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="#getSpeed()">getSpeed</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns the movement speed of the entity.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i30" class="altColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getTotalArmorValue()">getTotalArmorValue</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns the total armor value of the entity.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i31" class="rowColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getType()">getType</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns the EntityType (as defined in scripting constants) for this entity.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i32" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#hurt(float)">hurt</a></span>​(float damage)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Applies damage to this entity using a generic damage source.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i33" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#hurt(float,noppes.npcs.api.entity.IEntity)">hurt</a></span>​(float damage,
|
|
<a href="IEntity.html" title="interface in noppes.npcs.api.entity">IEntity</a> source)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Applies damage to this entity with the given source entity.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i34" class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#hurt(float,noppes.npcs.api.IDamageSource)">hurt</a></span>​(float damage,
|
|
<a href="../IDamageSource.html" title="interface in noppes.npcs.api">IDamageSource</a> damageSource)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Applies damage to this entity using a custom damage source.</div>
|
|
</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="#isAttacking()">isAttacking</a></span>()</code></th>
|
|
<td class="colLast"> </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="#isChild()">isChild</a></span>()</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i37" class="rowColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isOnLadder()">isOnLadder</a></span>()</code></th>
|
|
<td class="colLast"> </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="#renderBrokenItemStack(noppes.npcs.api.item.IItemStack)">renderBrokenItemStack</a></span>​(<a href="../item/IItemStack.html" title="interface in noppes.npcs.api.item">IItemStack</a> itemStack)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Renders a broken item stack effect for the given item.</div>
|
|
</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="#setAbsorptionAmount(float)">setAbsorptionAmount</a></span>​(float amount)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Sets the absorption (extra health) amount.</div>
|
|
</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="#setAIMoveSpeed(float)">setAIMoveSpeed</a></span>​(float speed)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Sets the AI move speed for the entity.</div>
|
|
</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="#setArmor(int,noppes.npcs.api.item.IItemStack)">setArmor</a></span>​(int slot,
|
|
<a href="../item/IItemStack.html" title="interface in noppes.npcs.api.item">IItemStack</a> item)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Sets the armor piece in the given slot.</div>
|
|
</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="#setArrowCountInEntity(int)">setArrowCountInEntity</a></span>​(int count)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Sets the number of arrows embedded in the entity.</div>
|
|
</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="#setAttackTarget(noppes.npcs.api.entity.IEntityLivingBase)">setAttackTarget</a></span>​(<a href="IEntityLivingBase.html" title="interface in noppes.npcs.api.entity">IEntityLivingBase</a> living)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Sets the attack target for this entity.</div>
|
|
</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="#setFollowRange(double)">setFollowRange</a></span>​(double range)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Sets the follow range of the entity.</div>
|
|
</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="#setHealth(float)">setHealth</a></span>​(float health)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Sets the entity's health to the specified value.</div>
|
|
</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="#setHeldItem(noppes.npcs.api.item.IItemStack)">setHeldItem</a></span>​(<a href="../item/IItemStack.html" title="interface in noppes.npcs.api.item">IItemStack</a> item)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Sets the item the entity is holding.</div>
|
|
</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="#setKnockbackResistance(double)">setKnockbackResistance</a></span>​(double knockbackResistance)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Sets the knockback resistance of the entity.</div>
|
|
</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="#setLastAttacker(noppes.npcs.api.entity.IEntity)">setLastAttacker</a></span>​(<a href="IEntity.html" title="interface in noppes.npcs.api.entity">IEntity</a> p_130011_1_)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Sets the last attacker for this entity.</div>
|
|
</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="#setMaxHealth(double)">setMaxHealth</a></span>​(double health)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Sets the entity's maximum health.</div>
|
|
</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="#setMaxHurtTime(int)">setMaxHurtTime</a></span>​(int time)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Sets the maximum hurt time (hurt resistance time) for this entity.</div>
|
|
</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="#setMeleeStrength(double)">setMeleeStrength</a></span>​(double attackDamage)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Sets the melee strength (attack damage) of the entity.</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="#setSpeed(double)">setSpeed</a></span>​(double speed)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Sets the movement speed of the entity.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i53" class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#swingHand()">swingHand</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Makes the entity swing its hand.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i54" class="altColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#typeOf(int)">typeOf</a></span>​(int type)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Checks if this entity is of the specified type.</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<ul class="blockList">
|
|
<li class="blockList"><a id="methods.inherited.from.class.noppes.npcs.api.entity.IEntity">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Methods inherited from interface 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#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#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#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="getHealth()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getHealth</h4>
|
|
<pre class="methodSignature">float getHealth()</pre>
|
|
<div class="block">Returns the entity's current health.</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the health value.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="setHealth(float)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setHealth</h4>
|
|
<pre class="methodSignature">void setHealth​(float health)</pre>
|
|
<div class="block">Sets the entity's health to the specified value.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>health</code> - the new health value.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="hurt(float)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>hurt</h4>
|
|
<pre class="methodSignature">void hurt​(float damage)</pre>
|
|
<div class="block">Applies damage to this entity using a generic damage source.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>damage</code> - the damage amount.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="hurt(float,noppes.npcs.api.entity.IEntity)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>hurt</h4>
|
|
<pre class="methodSignature">void hurt​(float damage,
|
|
<a href="IEntity.html" title="interface in noppes.npcs.api.entity">IEntity</a> source)</pre>
|
|
<div class="block">Applies damage to this entity with the given source entity.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>damage</code> - the damage amount.</dd>
|
|
<dd><code>source</code> - the source entity.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="hurt(float,noppes.npcs.api.IDamageSource)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>hurt</h4>
|
|
<pre class="methodSignature">void hurt​(float damage,
|
|
<a href="../IDamageSource.html" title="interface in noppes.npcs.api">IDamageSource</a> damageSource)</pre>
|
|
<div class="block">Applies damage to this entity using a custom damage source.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>damage</code> - the damage amount.</dd>
|
|
<dd><code>damageSource</code> - the damage source.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="setMaxHurtTime(int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setMaxHurtTime</h4>
|
|
<pre class="methodSignature">void setMaxHurtTime​(int time)</pre>
|
|
<div class="block">Sets the maximum hurt time (hurt resistance time) for this entity.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>time</code> - the time in ticks.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getMaxHurtTime()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getMaxHurtTime</h4>
|
|
<pre class="methodSignature">int getMaxHurtTime()</pre>
|
|
<div class="block">Returns the maximum hurt time (hurt resistance time) for this entity.</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the time in ticks.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getMaxHealth()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getMaxHealth</h4>
|
|
<pre class="methodSignature">double getMaxHealth()</pre>
|
|
<div class="block">Returns the entity's maximum health.</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the maximum health.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getFollowRange()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getFollowRange</h4>
|
|
<pre class="methodSignature">double getFollowRange()</pre>
|
|
<div class="block">Returns the follow range attribute of the entity.</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the follow range.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getKnockbackResistance()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getKnockbackResistance</h4>
|
|
<pre class="methodSignature">double getKnockbackResistance()</pre>
|
|
<div class="block">Returns the knockback resistance of the entity.</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the knockback resistance.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getSpeed()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getSpeed</h4>
|
|
<pre class="methodSignature">double getSpeed()</pre>
|
|
<div class="block">Returns the movement speed of the entity.</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the speed.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getMeleeStrength()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getMeleeStrength</h4>
|
|
<pre class="methodSignature">double getMeleeStrength()</pre>
|
|
<div class="block">Returns the melee strength (attack damage) of the entity.</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the melee strength.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="setMaxHealth(double)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setMaxHealth</h4>
|
|
<pre class="methodSignature">void setMaxHealth​(double health)</pre>
|
|
<div class="block">Sets the entity's maximum health.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>health</code> - the new maximum health.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="setFollowRange(double)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setFollowRange</h4>
|
|
<pre class="methodSignature">void setFollowRange​(double range)</pre>
|
|
<div class="block">Sets the follow range of the entity.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>range</code> - the new follow range.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="setKnockbackResistance(double)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setKnockbackResistance</h4>
|
|
<pre class="methodSignature">void setKnockbackResistance​(double knockbackResistance)</pre>
|
|
<div class="block">Sets the knockback resistance of the entity.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>knockbackResistance</code> - the new knockback resistance.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="setSpeed(double)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setSpeed</h4>
|
|
<pre class="methodSignature">void setSpeed​(double speed)</pre>
|
|
<div class="block">Sets the movement speed of the entity.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>speed</code> - the new movement speed.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="setMeleeStrength(double)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setMeleeStrength</h4>
|
|
<pre class="methodSignature">void setMeleeStrength​(double attackDamage)</pre>
|
|
<div class="block">Sets the melee strength (attack damage) of the entity.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>attackDamage</code> - the new attack damage.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="isAttacking()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>isAttacking</h4>
|
|
<pre class="methodSignature">boolean isAttacking()</pre>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>true if this entity is currently attacking a target; false otherwise.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="setAttackTarget(noppes.npcs.api.entity.IEntityLivingBase)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setAttackTarget</h4>
|
|
<pre class="methodSignature">void setAttackTarget​(<a href="IEntityLivingBase.html" title="interface in noppes.npcs.api.entity">IEntityLivingBase</a> living)</pre>
|
|
<div class="block">Sets the attack target for this entity.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>living</code> - the target entity.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getAttackTarget()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getAttackTarget</h4>
|
|
<pre class="methodSignature"><a href="IEntityLivingBase.html" title="interface in noppes.npcs.api.entity">IEntityLivingBase</a> getAttackTarget()</pre>
|
|
<div class="block">Returns the current attack target.</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the target entity.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getAttackTargetTime()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getAttackTargetTime</h4>
|
|
<pre class="methodSignature">int getAttackTargetTime()</pre>
|
|
<div class="block">Returns the time (in ticks) for which the current attack target has been active.</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the attack target time.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="setLastAttacker(noppes.npcs.api.entity.IEntity)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setLastAttacker</h4>
|
|
<pre class="methodSignature">void setLastAttacker​(<a href="IEntity.html" title="interface in noppes.npcs.api.entity">IEntity</a> p_130011_1_)</pre>
|
|
<div class="block">Sets the last attacker for this entity.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>p_130011_1_</code> - the last attacker.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getLastAttacker()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getLastAttacker</h4>
|
|
<pre class="methodSignature"><a href="IEntity.html" title="interface in noppes.npcs.api.entity">IEntity</a> getLastAttacker()</pre>
|
|
<div class="block">Returns the last attacker of this entity.</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the last attacker.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getLastAttackerTime()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getLastAttackerTime</h4>
|
|
<pre class="methodSignature">int getLastAttackerTime()</pre>
|
|
<div class="block">Returns the time (in ticks) since the entity was last attacked.</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the last attacker time.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="canBreatheUnderwater()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>canBreatheUnderwater</h4>
|
|
<pre class="methodSignature">boolean canBreatheUnderwater()</pre>
|
|
<div class="block">Checks whether the entity can breathe underwater.</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>true if it can breathe underwater; false otherwise.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getType()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getType</h4>
|
|
<pre class="methodSignature">int getType()</pre>
|
|
<div class="block">Returns the EntityType (as defined in scripting constants) for this entity.</div>
|
|
<dl>
|
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
|
<dd><code><a href="IEntity.html#getType()">getType</a></code> in interface <code><a href="IEntity.html" title="interface in noppes.npcs.api.entity">IEntity</a><<a href="IEntityLivingBase.html" title="type parameter in IEntityLivingBase">T</a> extends net.minecraft.entity.EntityLivingBase></code></dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the entity type.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="typeOf(int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>typeOf</h4>
|
|
<pre class="methodSignature">boolean typeOf​(int type)</pre>
|
|
<div class="block">Checks if this entity is of the specified type.</div>
|
|
<dl>
|
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
|
<dd><code><a href="IEntity.html#typeOf(int)">typeOf</a></code> in interface <code><a href="IEntity.html" title="interface in noppes.npcs.api.entity">IEntity</a><<a href="IEntityLivingBase.html" title="type parameter in IEntityLivingBase">T</a> extends net.minecraft.entity.EntityLivingBase></code></dd>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>type</code> - the type to check.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>true if this entity is of that type; false otherwise.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getLookVector()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getLookVector</h4>
|
|
<pre class="methodSignature"><a href="../IPos.html" title="interface in noppes.npcs.api">IPos</a> getLookVector()</pre>
|
|
<div class="block">Returns the look vector of this entity as an IPos object.</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the look vector.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getLookingAtBlock(int,boolean,boolean,boolean)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getLookingAtBlock</h4>
|
|
<pre class="methodSignature"><a href="../IBlock.html" title="interface in noppes.npcs.api">IBlock</a> getLookingAtBlock​(int maxDistance,
|
|
boolean stopOnBlock,
|
|
boolean stopOnLiquid,
|
|
boolean stopOnCollision)</pre>
|
|
<div class="block">Returns the block that the entity is looking at, with detailed stopping conditions.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>maxDistance</code> - the maximum distance to check.</dd>
|
|
<dd><code>stopOnBlock</code> - whether to stop on any block.</dd>
|
|
<dd><code>stopOnLiquid</code> - whether to stop on liquids.</dd>
|
|
<dd><code>stopOnCollision</code> - whether to stop on collisions.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the block being looked at.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getLookingAtBlock(int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getLookingAtBlock</h4>
|
|
<pre class="methodSignature"><a href="../IBlock.html" title="interface in noppes.npcs.api">IBlock</a> getLookingAtBlock​(int maxDistance)</pre>
|
|
<div class="block">Returns the first block found by following the entity's look vector,
|
|
using default parameters (stop on block).</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>maxDistance</code> - the maximum distance to check.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the block being looked at.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getLookingAtPos(int,boolean,boolean,boolean)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getLookingAtPos</h4>
|
|
<pre class="methodSignature"><a href="../IPos.html" title="interface in noppes.npcs.api">IPos</a> getLookingAtPos​(int maxDistance,
|
|
boolean stopOnBlock,
|
|
boolean stopOnLiquid,
|
|
boolean stopOnCollision)</pre>
|
|
<div class="block">Returns the position (IPos) corresponding to the final obstructed point along the entity's look vector,
|
|
with detailed stopping conditions.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>maxDistance</code> - the maximum distance to check.</dd>
|
|
<dd><code>stopOnBlock</code> - whether to stop on blocks.</dd>
|
|
<dd><code>stopOnLiquid</code> - whether to stop on liquids.</dd>
|
|
<dd><code>stopOnCollision</code> - whether to stop on collisions.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the obstructed position, or the final position if unobstructed.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getLookingAtPos(int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getLookingAtPos</h4>
|
|
<pre class="methodSignature"><a href="../IPos.html" title="interface in noppes.npcs.api">IPos</a> getLookingAtPos​(int maxDistance)</pre>
|
|
<div class="block">Returns the position (IPos) corresponding to the final obstructed point along the entity's look vector,
|
|
using default parameters (stop on block).</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>maxDistance</code> - the maximum distance to check.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the position being looked at.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getLookingAtEntities(noppes.npcs.api.entity.IEntity[],int,double,double,boolean,boolean,boolean)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getLookingAtEntities</h4>
|
|
<pre class="methodSignature"><a href="IEntity.html" title="interface in noppes.npcs.api.entity">IEntity</a>[] getLookingAtEntities​(<a href="IEntity.html" title="interface in noppes.npcs.api.entity">IEntity</a>[] ignoreEntities,
|
|
int maxDistance,
|
|
double offset,
|
|
double range,
|
|
boolean stopOnBlock,
|
|
boolean stopOnLiquid,
|
|
boolean stopOnCollision)</pre>
|
|
<div class="block">Returns an array of entities intersecting with the entity's look vector.
|
|
Entities are sorted first by proximity along the vector, then by closeness to the vector.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>ignoreEntities</code> - an array of entities to ignore.</dd>
|
|
<dd><code>maxDistance</code> - the maximum distance to check.</dd>
|
|
<dd><code>offset</code> - the offset along the vector.</dd>
|
|
<dd><code>range</code> - the search radius around the vector.</dd>
|
|
<dd><code>stopOnBlock</code> - whether to stop on blocks.</dd>
|
|
<dd><code>stopOnLiquid</code> - whether to stop on liquids.</dd>
|
|
<dd><code>stopOnCollision</code> - whether to stop on collisions.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>an array of entities.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getLookingAtEntities(int,double,double,boolean,boolean,boolean)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getLookingAtEntities</h4>
|
|
<pre class="methodSignature"><a href="IEntity.html" title="interface in noppes.npcs.api.entity">IEntity</a>[] getLookingAtEntities​(int maxDistance,
|
|
double offset,
|
|
double range,
|
|
boolean stopOnBlock,
|
|
boolean stopOnLiquid,
|
|
boolean stopOnCollision)</pre>
|
|
<div class="block">Returns an array of entities intersecting with the entity's look vector with detailed stop conditions.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>maxDistance</code> - the maximum distance.</dd>
|
|
<dd><code>offset</code> - the offset.</dd>
|
|
<dd><code>range</code> - the search radius.</dd>
|
|
<dd><code>stopOnBlock</code> - whether to stop on blocks.</dd>
|
|
<dd><code>stopOnLiquid</code> - whether to stop on liquids.</dd>
|
|
<dd><code>stopOnCollision</code> - whether to stop on collisions.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>an array of entities.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getLookingAtEntities(int,double,double)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getLookingAtEntities</h4>
|
|
<pre class="methodSignature"><a href="IEntity.html" title="interface in noppes.npcs.api.entity">IEntity</a>[] getLookingAtEntities​(int maxDistance,
|
|
double offset,
|
|
double range)</pre>
|
|
<div class="block">Returns an array of entities intersecting with the entity's look vector using default stop conditions.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>maxDistance</code> - the maximum distance.</dd>
|
|
<dd><code>offset</code> - the offset.</dd>
|
|
<dd><code>range</code> - the search radius.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>an array of entities.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getMCEntity()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getMCEntity</h4>
|
|
<pre class="methodSignature"><a href="IEntityLivingBase.html" title="type parameter in IEntityLivingBase">T</a> getMCEntity()</pre>
|
|
<div class="block">Expert use only.
|
|
Returns the underlying Minecraft EntityLivingBase object.</div>
|
|
<dl>
|
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
|
<dd><code><a href="IEntity.html#getMCEntity()">getMCEntity</a></code> in interface <code><a href="IEntity.html" title="interface in noppes.npcs.api.entity">IEntity</a><<a href="IEntityLivingBase.html" title="type parameter in IEntityLivingBase">T</a> extends net.minecraft.entity.EntityLivingBase></code></dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the Minecraft entity.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="swingHand()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>swingHand</h4>
|
|
<pre class="methodSignature">void swingHand()</pre>
|
|
<div class="block">Makes the entity swing its hand.</div>
|
|
</li>
|
|
</ul>
|
|
<a id="addPotionEffect(int,int,int,boolean)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>addPotionEffect</h4>
|
|
<pre class="methodSignature">void addPotionEffect​(int effect,
|
|
int duration,
|
|
int strength,
|
|
boolean hideParticles)</pre>
|
|
<div class="block">Applies a potion effect to the entity.
|
|
Works similarly to the /effect command.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>effect</code> - the potion effect ID.</dd>
|
|
<dd><code>duration</code> - the duration in seconds.</dd>
|
|
<dd><code>strength</code> - the amplifier of the effect.</dd>
|
|
<dd><code>hideParticles</code> - whether to hide potion particles.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="clearPotionEffects()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>clearPotionEffects</h4>
|
|
<pre class="methodSignature">void clearPotionEffects()</pre>
|
|
<div class="block">Clears all active potion effects from the entity.</div>
|
|
</li>
|
|
</ul>
|
|
<a id="getPotionEffect(int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getPotionEffect</h4>
|
|
<pre class="methodSignature">int getPotionEffect​(int effect)</pre>
|
|
<div class="block">Returns the amplifier of the specified potion effect.
|
|
If the effect is not active, returns -1.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>effect</code> - the potion effect ID.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the amplifier, or -1 if not active.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getHeldItem()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getHeldItem</h4>
|
|
<pre class="methodSignature"><a href="../item/IItemStack.html" title="interface in noppes.npcs.api.item">IItemStack</a> getHeldItem()</pre>
|
|
<div class="block">Returns the item the entity is currently holding.
|
|
Note that not all living entities support this.</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the held item.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="setHeldItem(noppes.npcs.api.item.IItemStack)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setHeldItem</h4>
|
|
<pre class="methodSignature">void setHeldItem​(<a href="../item/IItemStack.html" title="interface in noppes.npcs.api.item">IItemStack</a> item)</pre>
|
|
<div class="block">Sets the item the entity is holding.
|
|
Note that not all living entities support this.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>item</code> - the item to set.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getArmor(int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getArmor</h4>
|
|
<pre class="methodSignature"><a href="../item/IItemStack.html" title="interface in noppes.npcs.api.item">IItemStack</a> getArmor​(int slot)</pre>
|
|
<div class="block">Returns the armor piece in the given slot.
|
|
Slots: 0 - boots, 1 - pants, 2 - body, 3 - head.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>slot</code> - the armor slot.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the armor item.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="setArmor(int,noppes.npcs.api.item.IItemStack)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setArmor</h4>
|
|
<pre class="methodSignature">void setArmor​(int slot,
|
|
<a href="../item/IItemStack.html" title="interface in noppes.npcs.api.item">IItemStack</a> item)</pre>
|
|
<div class="block">Sets the armor piece in the given slot.
|
|
Slots: 0 - boots, 1 - pants, 2 - body, 3 - head.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>slot</code> - the armor slot.</dd>
|
|
<dd><code>item</code> - the item to set.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="isChild()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>isChild</h4>
|
|
<pre class="methodSignature">boolean isChild()</pre>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>true if this entity is a child.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="renderBrokenItemStack(noppes.npcs.api.item.IItemStack)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>renderBrokenItemStack</h4>
|
|
<pre class="methodSignature">void renderBrokenItemStack​(<a href="../item/IItemStack.html" title="interface in noppes.npcs.api.item">IItemStack</a> itemStack)</pre>
|
|
<div class="block">Renders a broken item stack effect for the given item.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>itemStack</code> - the item stack.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="isOnLadder()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>isOnLadder</h4>
|
|
<pre class="methodSignature">boolean isOnLadder()</pre>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>true if the entity is on a ladder.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getTotalArmorValue()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getTotalArmorValue</h4>
|
|
<pre class="methodSignature">int getTotalArmorValue()</pre>
|
|
<div class="block">Returns the total armor value of the entity.</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the armor value.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getArrowCountInEntity()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getArrowCountInEntity</h4>
|
|
<pre class="methodSignature">int getArrowCountInEntity()</pre>
|
|
<div class="block">Returns the number of arrows currently embedded in the entity.</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the arrow count.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="setArrowCountInEntity(int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setArrowCountInEntity</h4>
|
|
<pre class="methodSignature">void setArrowCountInEntity​(int count)</pre>
|
|
<div class="block">Sets the number of arrows embedded in the entity.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>count</code> - the new arrow count.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="dismountEntity(noppes.npcs.api.entity.IEntity)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>dismountEntity</h4>
|
|
<pre class="methodSignature">void dismountEntity​(<a href="IEntity.html" title="interface in noppes.npcs.api.entity">IEntity</a> entity)</pre>
|
|
<div class="block">Dismounts the specified entity from this entity.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>entity</code> - the entity to dismount.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="setAIMoveSpeed(float)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setAIMoveSpeed</h4>
|
|
<pre class="methodSignature">void setAIMoveSpeed​(float speed)</pre>
|
|
<div class="block">Sets the AI move speed for the entity.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>speed</code> - the speed value.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getAIMoveSpeed()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getAIMoveSpeed</h4>
|
|
<pre class="methodSignature">float getAIMoveSpeed()</pre>
|
|
<div class="block">Returns the AI move speed of the entity.</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the speed.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="setAbsorptionAmount(float)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setAbsorptionAmount</h4>
|
|
<pre class="methodSignature">void setAbsorptionAmount​(float amount)</pre>
|
|
<div class="block">Sets the absorption (extra health) amount.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>amount</code> - the absorption amount.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="getAbsorptionAmount()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>getAbsorptionAmount</h4>
|
|
<pre class="methodSignature">float getAbsorptionAmount()</pre>
|
|
<div class="block">Returns the absorption (extra health) amount.</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the absorption amount.</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-files/index-1.html">Index</a></li>
|
|
<li><a href="../../../../help-doc.html">Help</a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="subNav">
|
|
<ul class="navList" id="allclasses_navbar_bottom">
|
|
<li><a href="../../../../allclasses.html">All Classes</a></li>
|
|
</ul>
|
|
<div>
|
|
<script type="text/javascript"><!--
|
|
allClassesLink = document.getElementById("allclasses_navbar_bottom");
|
|
if(window==top) {
|
|
allClassesLink.style.display = "block";
|
|
}
|
|
else {
|
|
allClassesLink.style.display = "none";
|
|
}
|
|
//-->
|
|
</script>
|
|
<noscript>
|
|
<div>JavaScript is disabled on your browser.</div>
|
|
</noscript>
|
|
</div>
|
|
<div>
|
|
<ul class="subNavList">
|
|
<li>Summary: </li>
|
|
<li>Nested | </li>
|
|
<li>Field | </li>
|
|
<li>Constr | </li>
|
|
<li><a href="#method.summary">Method</a></li>
|
|
</ul>
|
|
<ul class="subNavList">
|
|
<li>Detail: </li>
|
|
<li>Field | </li>
|
|
<li>Constr | </li>
|
|
<li><a href="#method.detail">Method</a></li>
|
|
</ul>
|
|
</div>
|
|
<a id="skip.navbar.bottom">
|
|
<!-- -->
|
|
</a></div>
|
|
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
|
</nav>
|
|
</footer>
|
|
</body>
|
|
</html>
|