mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 16:37:45 +00:00
771 lines
57 KiB
HTML
771 lines
57 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|||
|
|
<!-- NewPage -->
|
||
|
|
<html lang="en">
|
||
|
|
<head>
|
||
|
|
<!-- Generated by javadoc (1.8.0_311) on Tue Jun 28 01:28:36 CDT 2022 -->
|
||
|
|
<title>ScriptLivingBase</title>
|
||
|
|
<meta name="date" content="2022-06-28">
|
||
|
|
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
|
||
|
|
<script type="text/javascript" src="../../../../script.js"></script>
|
||
|
|
</head>
|
||
|
|
<body>
|
||
|
|
<script type="text/javascript"><!--
|
||
|
|
try {
|
||
|
|
if (location.href.indexOf('is-external=true') == -1) {
|
||
|
|
parent.document.title="ScriptLivingBase";
|
||
|
|
}
|
||
|
|
}
|
||
|
|
catch(err) {
|
||
|
|
}
|
||
|
|
//-->
|
||
|
|
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10};
|
||
|
|
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
|
||
|
|
var altColor = "altColor";
|
||
|
|
var rowColor = "rowColor";
|
||
|
|
var tableTab = "tableTab";
|
||
|
|
var activeTableTab = "activeTableTab";
|
||
|
|
</script>
|
||
|
|
<noscript>
|
||
|
|
<div>JavaScript is disabled on your browser.</div>
|
||
|
|
</noscript>
|
||
|
|
<!-- ========= START OF TOP NAVBAR ======= -->
|
||
|
|
<div class="topNav"><a name="navbar.top">
|
||
|
|
<!-- -->
|
||
|
|
</a>
|
||
|
|
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
|
||
|
|
<a name="navbar.top.firstrow">
|
||
|
|
<!-- -->
|
||
|
|
</a>
|
||
|
|
<ul class="navList" title="Navigation">
|
||
|
|
<li><a href="../../../../overview-summary.html">Overview</a></li>
|
||
|
|
<li><a href="package-summary.html">Package</a></li>
|
||
|
|
<li class="navBarCell1Rev">Class</li>
|
||
|
|
<li><a href="package-tree.html">Tree</a></li>
|
||
|
|
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
|
||
|
|
<li><a href="../../../../index-files/index-1.html">Index</a></li>
|
||
|
|
<li><a href="../../../../help-doc.html">Help</a></li>
|
||
|
|
</ul>
|
||
|
|
</div>
|
||
|
|
<div class="subNav">
|
||
|
|
<ul class="navList">
|
||
|
|
<li><a href="../../../../noppes/npcs/scripted/entity/ScriptLiving.html" title="class in noppes.npcs.scripted.entity"><span class="typeNameLink">Prev Class</span></a></li>
|
||
|
|
<li><a href="../../../../noppes/npcs/scripted/entity/ScriptMonster.html" title="class in noppes.npcs.scripted.entity"><span class="typeNameLink">Next Class</span></a></li>
|
||
|
|
</ul>
|
||
|
|
<ul class="navList">
|
||
|
|
<li><a href="../../../../index.html?noppes/npcs/scripted/entity/ScriptLivingBase.html" target="_top">Frames</a></li>
|
||
|
|
<li><a href="ScriptLivingBase.html" target="_top">No Frames</a></li>
|
||
|
|
</ul>
|
||
|
|
<ul class="navList" id="allclasses_navbar_top">
|
||
|
|
<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
|
||
|
|
</ul>
|
||
|
|
<div>
|
||
|
|
<script type="text/javascript"><!--
|
||
|
|
allClassesLink = document.getElementById("allclasses_navbar_top");
|
||
|
|
if(window==top) {
|
||
|
|
allClassesLink.style.display = "block";
|
||
|
|
}
|
||
|
|
else {
|
||
|
|
allClassesLink.style.display = "none";
|
||
|
|
}
|
||
|
|
//-->
|
||
|
|
</script>
|
||
|
|
</div>
|
||
|
|
<div>
|
||
|
|
<ul class="subNavList">
|
||
|
|
<li>Summary: </li>
|
||
|
|
<li>Nested | </li>
|
||
|
|
<li>Field | </li>
|
||
|
|
<li><a href="#constructor.summary">Constr</a> | </li>
|
||
|
|
<li><a href="#method.summary">Method</a></li>
|
||
|
|
</ul>
|
||
|
|
<ul class="subNavList">
|
||
|
|
<li>Detail: </li>
|
||
|
|
<li>Field | </li>
|
||
|
|
<li><a href="#constructor.detail">Constr</a> | </li>
|
||
|
|
<li><a href="#method.detail">Method</a></li>
|
||
|
|
</ul>
|
||
|
|
</div>
|
||
|
|
<a name="skip.navbar.top">
|
||
|
|
<!-- -->
|
||
|
|
</a></div>
|
||
|
|
<!-- ========= END OF TOP NAVBAR ========= -->
|
||
|
|
<!-- ======== START OF CLASS DATA ======== -->
|
||
|
|
<div class="header">
|
||
|
|
<div class="subTitle">noppes.npcs.scripted.entity</div>
|
||
|
|
<h2 title="Class ScriptLivingBase" class="title">Class ScriptLivingBase<T extends net.minecraft.entity.EntityLivingBase></h2>
|
||
|
|
</div>
|
||
|
|
<div class="contentContainer">
|
||
|
|
<ul class="inheritance">
|
||
|
|
<li>java.lang.Object</li>
|
||
|
|
<li>
|
||
|
|
<ul class="inheritance">
|
||
|
|
<li><a href="../../../../noppes/npcs/scripted/entity/ScriptEntity.html" title="class in noppes.npcs.scripted.entity">noppes.npcs.scripted.entity.ScriptEntity</a><T></li>
|
||
|
|
<li>
|
||
|
|
<ul class="inheritance">
|
||
|
|
<li>noppes.npcs.scripted.entity.ScriptLivingBase<T></li>
|
||
|
|
</ul>
|
||
|
|
</li>
|
||
|
|
</ul>
|
||
|
|
</li>
|
||
|
|
</ul>
|
||
|
|
<div class="description">
|
||
|
|
<ul class="blockList">
|
||
|
|
<li class="blockList">
|
||
|
|
<dl>
|
||
|
|
<dt>All Implemented Interfaces:</dt>
|
||
|
|
<dd><a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntity.html" title="interface in noppes.npcs.scripted.interfaces.entity">IEntity</a>, <a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntityLivingBase.html" title="interface in noppes.npcs.scripted.interfaces.entity">IEntityLivingBase</a></dd>
|
||
|
|
</dl>
|
||
|
|
<dl>
|
||
|
|
<dt>Direct Known Subclasses:</dt>
|
||
|
|
<dd><a href="../../../../noppes/npcs/scripted/entity/ScriptLiving.html" title="class in noppes.npcs.scripted.entity">ScriptLiving</a>, <a href="../../../../noppes/npcs/scripted/entity/ScriptPlayer.html" title="class in noppes.npcs.scripted.entity">ScriptPlayer</a></dd>
|
||
|
|
</dl>
|
||
|
|
<hr>
|
||
|
|
<br>
|
||
|
|
<pre>public class <span class="typeNameLabel">ScriptLivingBase<T extends net.minecraft.entity.EntityLivingBase></span>
|
||
|
|
extends <a href="../../../../noppes/npcs/scripted/entity/ScriptEntity.html" title="class in noppes.npcs.scripted.entity">ScriptEntity</a><T>
|
||
|
|
implements <a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntityLivingBase.html" title="interface in noppes.npcs.scripted.interfaces.entity">IEntityLivingBase</a></pre>
|
||
|
|
</li>
|
||
|
|
</ul>
|
||
|
|
</div>
|
||
|
|
<div class="summary">
|
||
|
|
<ul class="blockList">
|
||
|
|
<li class="blockList">
|
||
|
|
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
||
|
|
<ul class="blockList">
|
||
|
|
<li class="blockList"><a name="constructor.summary">
|
||
|
|
<!-- -->
|
||
|
|
</a>
|
||
|
|
<h3>Constructor Summary</h3>
|
||
|
|
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
|
||
|
|
<caption><span>Constructors</span><span class="tabEnd"> </span></caption>
|
||
|
|
<tr>
|
||
|
|
<th class="colOne" scope="col">Constructor and Description</th>
|
||
|
|
</tr>
|
||
|
|
<tr class="altColor">
|
||
|
|
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../noppes/npcs/scripted/entity/ScriptLivingBase.html#ScriptLivingBase-T-">ScriptLivingBase</a></span>(<a href="../../../../noppes/npcs/scripted/entity/ScriptLivingBase.html" title="type parameter in ScriptLivingBase">T</a> entity)</code> </td>
|
||
|
|
</tr>
|
||
|
|
</table>
|
||
|
|
</li>
|
||
|
|
</ul>
|
||
|
|
<!-- ========== METHOD SUMMARY =========== -->
|
||
|
|
<ul class="blockList">
|
||
|
|
<li class="blockList"><a name="method.summary">
|
||
|
|
<!-- -->
|
||
|
|
</a>
|
||
|
|
<h3>Method Summary</h3>
|
||
|
|
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
|
||
|
|
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption>
|
||
|
|
<tr>
|
||
|
|
<th class="colFirst" scope="col">Modifier and Type</th>
|
||
|
|
<th class="colLast" scope="col">Method and Description</th>
|
||
|
|
</tr>
|
||
|
|
<tr id="i0" class="altColor">
|
||
|
|
<td class="colFirst"><code>void</code></td>
|
||
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../noppes/npcs/scripted/entity/ScriptLivingBase.html#addPotionEffect-int-int-int-boolean-">addPotionEffect</a></span>(int effect,
|
||
|
|
int duration,
|
||
|
|
int strength,
|
||
|
|
boolean hideParticles)</code>
|
||
|
|
<div class="block">Works the same as the <a href="http://minecraft.gamepedia.com/Commands#effect">/effect command</a></div>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
<tr id="i1" class="rowColor">
|
||
|
|
<td class="colFirst"><code>boolean</code></td>
|
||
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../noppes/npcs/scripted/entity/ScriptLivingBase.html#canSeeEntity-noppes.npcs.scripted.interfaces.entity.IEntity-">canSeeEntity</a></span>(<a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntity.html" title="interface in noppes.npcs.scripted.interfaces.entity">IEntity</a> entity)</code> </td>
|
||
|
|
</tr>
|
||
|
|
<tr id="i2" class="altColor">
|
||
|
|
<td class="colFirst"><code>void</code></td>
|
||
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../noppes/npcs/scripted/entity/ScriptLivingBase.html#clearPotionEffects--">clearPotionEffects</a></span>()</code>
|
||
|
|
<div class="block">Clears all potion effects</div>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
<tr id="i3" class="rowColor">
|
||
|
|
<td class="colFirst"><code><a href="../../../../noppes/npcs/scripted/interfaces/item/IItemStack.html" title="interface in noppes.npcs.scripted.interfaces.item">IItemStack</a></code></td>
|
||
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../noppes/npcs/scripted/entity/ScriptLivingBase.html#getArmor-int-">getArmor</a></span>(int slot)</code>
|
||
|
|
<div class="block">Note not all Living Entities support this</div>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
<tr id="i4" class="altColor">
|
||
|
|
<td class="colFirst"><code><a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntityLivingBase.html" title="interface in noppes.npcs.scripted.interfaces.entity">IEntityLivingBase</a></code></td>
|
||
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../noppes/npcs/scripted/entity/ScriptLivingBase.html#getAttackTarget--">getAttackTarget</a></span>()</code> </td>
|
||
|
|
</tr>
|
||
|
|
<tr id="i5" class="rowColor">
|
||
|
|
<td class="colFirst"><code>float</code></td>
|
||
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../noppes/npcs/scripted/entity/ScriptLivingBase.html#getHealth--">getHealth</a></span>()</code> </td>
|
||
|
|
</tr>
|
||
|
|
<tr id="i6" class="altColor">
|
||
|
|
<td class="colFirst"><code><a href="../../../../noppes/npcs/scripted/interfaces/item/IItemStack.html" title="interface in noppes.npcs.scripted.interfaces.item">IItemStack</a></code></td>
|
||
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../noppes/npcs/scripted/entity/ScriptLivingBase.html#getHeldItem--">getHeldItem</a></span>()</code>
|
||
|
|
<div class="block">Note not all Living Entities support this</div>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
<tr id="i7" class="rowColor">
|
||
|
|
<td class="colFirst"><code>java.lang.String</code></td>
|
||
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../noppes/npcs/scripted/entity/ScriptLivingBase.html#getLookVec--">getLookVec</a></span>()</code> </td>
|
||
|
|
</tr>
|
||
|
|
<tr id="i8" class="altColor">
|
||
|
|
<td class="colFirst"><code>double</code></td>
|
||
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../noppes/npcs/scripted/entity/ScriptLivingBase.html#getMaxHealth--">getMaxHealth</a></span>()</code> </td>
|
||
|
|
</tr>
|
||
|
|
<tr id="i9" class="rowColor">
|
||
|
|
<td class="colFirst"><code><a href="../../../../noppes/npcs/scripted/entity/ScriptLivingBase.html" title="type parameter in ScriptLivingBase">T</a></code></td>
|
||
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../noppes/npcs/scripted/entity/ScriptLivingBase.html#getMCEntity--">getMCEntity</a></span>()</code>
|
||
|
|
<div class="block">Expert use only</div>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
<tr id="i10" class="altColor">
|
||
|
|
<td class="colFirst"><code><a href="../../../../noppes/npcs/scripted/entity/ScriptLivingBase.html" title="type parameter in ScriptLivingBase">T</a></code></td>
|
||
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../noppes/npcs/scripted/entity/ScriptLivingBase.html#getMinecraftEntity--">getMinecraftEntity</a></span>()</code> </td>
|
||
|
|
</tr>
|
||
|
|
<tr id="i11" class="rowColor">
|
||
|
|
<td class="colFirst"><code>int</code></td>
|
||
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../noppes/npcs/scripted/entity/ScriptLivingBase.html#getPotionEffect-int-">getPotionEffect</a></span>(int effect)</code> </td>
|
||
|
|
</tr>
|
||
|
|
<tr id="i12" class="altColor">
|
||
|
|
<td class="colFirst"><code>int</code></td>
|
||
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../noppes/npcs/scripted/entity/ScriptLivingBase.html#getType--">getType</a></span>()</code> </td>
|
||
|
|
</tr>
|
||
|
|
<tr id="i13" class="rowColor">
|
||
|
|
<td class="colFirst"><code>void</code></td>
|
||
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../noppes/npcs/scripted/entity/ScriptLivingBase.html#hurt-float-">hurt</a></span>(float damage)</code> </td>
|
||
|
|
</tr>
|
||
|
|
<tr id="i14" class="altColor">
|
||
|
|
<td class="colFirst"><code>void</code></td>
|
||
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../noppes/npcs/scripted/entity/ScriptLivingBase.html#hurt-float-noppes.npcs.scripted.interfaces.entity.IEntity-">hurt</a></span>(float damage,
|
||
|
|
<a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntity.html" title="interface in noppes.npcs.scripted.interfaces.entity">IEntity</a> source)</code> </td>
|
||
|
|
</tr>
|
||
|
|
<tr id="i15" class="rowColor">
|
||
|
|
<td class="colFirst"><code>void</code></td>
|
||
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../noppes/npcs/scripted/entity/ScriptLivingBase.html#hurt-float-noppes.npcs.scripted.ScriptDamageSource-">hurt</a></span>(float damage,
|
||
|
|
noppes.npcs.scripted.ScriptDamageSource damageSource)</code> </td>
|
||
|
|
</tr>
|
||
|
|
<tr id="i16" class="altColor">
|
||
|
|
<td class="colFirst"><code>boolean</code></td>
|
||
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../noppes/npcs/scripted/entity/ScriptLivingBase.html#isAttacking--">isAttacking</a></span>()</code> </td>
|
||
|
|
</tr>
|
||
|
|
<tr id="i17" class="rowColor">
|
||
|
|
<td class="colFirst"><code>void</code></td>
|
||
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../noppes/npcs/scripted/entity/ScriptLivingBase.html#setArmor-int-noppes.npcs.scripted.interfaces.item.IItemStack-">setArmor</a></span>(int slot,
|
||
|
|
<a href="../../../../noppes/npcs/scripted/interfaces/item/IItemStack.html" title="interface in noppes.npcs.scripted.interfaces.item">IItemStack</a> item)</code>
|
||
|
|
<div class="block">Note not all Living Entities support this</div>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
<tr id="i18" class="altColor">
|
||
|
|
<td class="colFirst"><code>void</code></td>
|
||
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../noppes/npcs/scripted/entity/ScriptLivingBase.html#setAttackTarget-noppes.npcs.scripted.interfaces.entity.IEntityLivingBase-">setAttackTarget</a></span>(<a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntityLivingBase.html" title="interface in noppes.npcs.scripted.interfaces.entity">IEntityLivingBase</a> living)</code> </td>
|
||
|
|
</tr>
|
||
|
|
<tr id="i19" class="rowColor">
|
||
|
|
<td class="colFirst"><code>void</code></td>
|
||
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../noppes/npcs/scripted/entity/ScriptLivingBase.html#setHealth-float-">setHealth</a></span>(float health)</code> </td>
|
||
|
|
</tr>
|
||
|
|
<tr id="i20" class="altColor">
|
||
|
|
<td class="colFirst"><code>void</code></td>
|
||
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../noppes/npcs/scripted/entity/ScriptLivingBase.html#setHeldItem-noppes.npcs.scripted.interfaces.item.IItemStack-">setHeldItem</a></span>(<a href="../../../../noppes/npcs/scripted/interfaces/item/IItemStack.html" title="interface in noppes.npcs.scripted.interfaces.item">IItemStack</a> item)</code>
|
||
|
|
<div class="block">Note not all Living Entities support this</div>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
<tr id="i21" class="rowColor">
|
||
|
|
<td class="colFirst"><code>void</code></td>
|
||
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../noppes/npcs/scripted/entity/ScriptLivingBase.html#swingHand--">swingHand</a></span>()</code>
|
||
|
|
<div class="block">Makes the entity swing its hand</div>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
<tr id="i22" class="altColor">
|
||
|
|
<td class="colFirst"><code>boolean</code></td>
|
||
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../noppes/npcs/scripted/entity/ScriptLivingBase.html#typeOf-int-">typeOf</a></span>(int type)</code> </td>
|
||
|
|
</tr>
|
||
|
|
</table>
|
||
|
|
<ul class="blockList">
|
||
|
|
<li class="blockList"><a name="methods.inherited.from.class.noppes.npcs.scripted.entity.ScriptEntity">
|
||
|
|
<!-- -->
|
||
|
|
</a>
|
||
|
|
<h3>Methods inherited from class noppes.npcs.scripted.entity.<a href="../../../../noppes/npcs/scripted/entity/ScriptEntity.html" title="class in noppes.npcs.scripted.entity">ScriptEntity</a></h3>
|
||
|
|
<code><a href="../../../../noppes/npcs/scripted/entity/ScriptEntity.html#clearStoredData--">clearStoredData</a>, <a href="../../../../noppes/npcs/scripted/entity/ScriptEntity.html#clearTempData--">clearTempData</a>, <a href="../../../../noppes/npcs/scripted/entity/ScriptEntity.html#despawn--">despawn</a>, <a href="../../../../noppes/npcs/scripted/entity/ScriptEntity.html#dropItem-noppes.npcs.scripted.interfaces.item.IItemStack-">dropItem</a>, <a href="../../../../noppes/npcs/scripted/entity/ScriptEntity.html#extinguish--">extinguish</a>, <a href="../../../../noppes/npcs/scripted/entity/ScriptEntity.html#getAge--">getAge</a>, <a href="../../../../noppes/npcs/scripted/entity/ScriptEntity.html#getAllNbt--">getAllNbt</a>, <a href="../../../../noppes/npcs/scripted/entity/ScriptEntity.html#getBlockX--">getBlockX</a>, <a href="../../../../noppes/npcs/scripted/entity/ScriptEntity.html#getBlockY--">getBlockY</a>, <a href="../../../../noppes/npcs/scripted/entity/ScriptEntity.html#getBlockZ--">getBlockZ</a>, <a href="../../../../noppes/npcs/scripted/entity/ScriptEntity.html#getDimension--">getDimension</a>, <a href="../../../../noppes/npcs/scripted/entity/ScriptEntity.html#getEntityId--">getEntityId</a>, <a href="../../../../noppes/npcs/scripted/entity/ScriptEntity.html#getHeight--">getHeight</a>, <a href="../../../../noppes/npcs/scripted/entity/ScriptEntity.html#getMotionX--">getMotionX</a>, <a href="../../../../noppes/npcs/scripted/entity/ScriptEntity.html#getMotionY--">getMotionY</a>, <a href="../../../../noppes/npcs/scripted/entity/ScriptEntity.html#getMotionZ--">getMotionZ</a>, <a href="../../../../noppes/npcs/scripted/entity/ScriptEntity.html#getMount--">getMount</a>, <a href="../../../../noppes/npcs/scripted/entity/ScriptEntity.html#getNbt--">getNbt</a>, <a href="../../../../noppes/npcs/scripted/entity/ScriptEntity.html#getPitch--">getPitch</a>, <a href="../../../../noppes/npcs/scripted/entity/ScriptEntity.html#getPos--">getPos</a>, <a href="../../../../noppes/npcs/scripted/entity/ScriptEntity.html#getRider--">getRider</a>, <a href="../../../../noppes/npcs/scripted/entity/ScriptEntity.html#getRotation--">getRotation</a>, <a href="../../../../noppes/npcs/scripted/entity/ScriptEntity.html#getStoredData-java.lang.String-">getStoredData</a>, <a href="../../../../noppes/npcs/scripted/entity/ScriptEntity.html#getSurroundingEntities-int-">getSurroundingEntities</a>, <a href="../../../../noppes/npcs/scripted/entity/ScriptEntity.html#getSurroundingEntities-int-int-">getSurroundingEntities</a>, <a href="../../../../noppes/npcs/scripted/entity/ScriptEntity.html#getTempData-java.lang.String-">getTempData</a>, <a href="../../../../noppes/npcs/scripted/entity/ScriptEntity.html#getTypeName--">getTypeName</a>, <a href="../../../../noppes/npcs/scripted/entity/ScriptEntity.html#getUniqueID--">getUniqueID</a>, <a href="../../../../noppes/npcs/scripted/entity/ScriptEntity.html#getWidth--">getWidth</a>, <a href="../../../../noppes/npcs/scripted/entity/ScriptEntity.html#getWorld--">getWorld</a>, <a href="../../../../noppes/npcs/scripted/entity/ScriptEntity.html#getX--">getX</a>, <a href="../../../../noppes/npcs/scripted/entity/ScriptEntity.html#getY--">getY</a>, <a href="../../../../noppes/npcs/scripted/entity/ScriptEntity.html#getYOffset--">getYOffset</a>, <a href="../../../../noppes/npcs/scripted/entity/ScriptEntity.html#getZ--">getZ</a>, <a href="../../../../noppes/npcs/scripted/entity/ScriptEntity.html#hasCollided--">hasCollided</a>, <a href="../../../../noppes/npcs/scripted/entity/ScriptEntity.html#hasStoredData-java.lang.String-">hasStoredData</a>, <a href="../../../../noppes/npcs/scripted/entity/ScriptEntity.html#hasTempData-java.lang.String-">hasTempData</a>, <a href="../../../../noppes/npcs/scripted/entity/ScriptEntity.html#inFire--">inFire</a>, <a href="../../../../noppes/npcs/scripted/entity/ScriptEntity.html#inLava--">inLava</a>, <a href="../../../../noppes/npcs/scripted/entity/ScriptEntity.html#inWater--">inWater</a>, <a href="../../../../noppes/npcs/scripted/entity/ScriptEntity.html#isAirborne--">isAirborne</a>, <a href="../../../.
|
||
|
|
</ul>
|
||
|
|
<ul class="blockList">
|
||
|
|
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
|
||
|
|
<!-- -->
|
||
|
|
</a>
|
||
|
|
<h3>Methods inherited from class java.lang.Object</h3>
|
||
|
|
<code>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
|
||
|
|
</ul>
|
||
|
|
<ul class="blockList">
|
||
|
|
<li class="blockList"><a name="methods.inherited.from.class.noppes.npcs.scripted.interfaces.entity.IEntity">
|
||
|
|
<!-- -->
|
||
|
|
</a>
|
||
|
|
<h3>Methods inherited from interface noppes.npcs.scripted.interfaces.entity.<a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntity.html" title="interface in noppes.npcs.scripted.interfaces.entity">IEntity</a></h3>
|
||
|
|
<code><a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntity.html#clearStoredData--">clearStoredData</a>, <a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntity.html#clearTempData--">clearTempData</a>, <a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntity.html#despawn--">despawn</a>, <a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntity.html#dropItem-noppes.npcs.scripted.interfaces.item.IItemStack-">dropItem</a>, <a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntity.html#extinguish--">extinguish</a>, <a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntity.html#getAge--">getAge</a>, <a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntity.html#getAllNbt--">getAllNbt</a>, <a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntity.html#getBlockX--">getBlockX</a>, <a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntity.html#getBlockY--">getBlockY</a>, <a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntity.html#getBlockZ--">getBlockZ</a>, <a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntity.html#getDimension--">getDimension</a>, <a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntity.html#getEntityId--">getEntityId</a>, <a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntity.html#getHeight--">getHeight</a>, <a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntity.html#getMotionX--">getMotionX</a>, <a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntity.html#getMotionY--">getMotionY</a>, <a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntity.html#getMotionZ--">getMotionZ</a>, <a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntity.html#getMount--">getMount</a>, <a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntity.html#getNbt--">getNbt</a>, <a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntity.html#getPitch--">getPitch</a>, <a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntity.html#getPos--">getPos</a>, <a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntity.html#getRider--">getRider</a>, <a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntity.html#getRotation--">getRotation</a>, <a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntity.html#getStoredData-java.lang.String-">getStoredData</a>, <a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntity.html#getSurroundingEntities-int-">getSurroundingEntities</a>, <a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntity.html#getSurroundingEntities-int-int-">getSurroundingEntities</a>, <a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntity.html#getTempData-java.lang.String-">getTempData</a>, <a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntity.html#getTypeName--">getTypeName</a>, <a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntity.html#getUniqueID--">getUniqueID</a>, <a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntity.html#getWidth--">getWidth</a>, <a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntity.html#getWorld--">getWorld</a>, <a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntity.html#getX--">getX</a>, <a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntity.html#getY--">getY</a>, <a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntity.html#getYOffset--">getYOffset</a>, <a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntity.html#getZ--">getZ</a>, <a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntity.html#hasCollided--">hasCollided</a>, <a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntity.html#hasStoredData-java.lang.String-">hasStoredData</a>, <a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntity.html#hasTempData-java.lang.String-">hasTempData</a>, <a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntity.html#inFire--">inFire</a>, <a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntity.
|
||
|
|
</ul>
|
||
|
|
</li>
|
||
|
|
</ul>
|
||
|
|
</li>
|
||
|
|
</ul>
|
||
|
|
</div>
|
||
|
|
<div class="details">
|
||
|
|
<ul class="blockList">
|
||
|
|
<li class="blockList">
|
||
|
|
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
||
|
|
<ul class="blockList">
|
||
|
|
<li class="blockList"><a name="constructor.detail">
|
||
|
|
<!-- -->
|
||
|
|
</a>
|
||
|
|
<h3>Constructor Detail</h3>
|
||
|
|
<a name="ScriptLivingBase-net.minecraft.entity.EntityLivingBase-">
|
||
|
|
<!-- -->
|
||
|
|
</a><a name="ScriptLivingBase-T-">
|
||
|
|
<!-- -->
|
||
|
|
</a>
|
||
|
|
<ul class="blockListLast">
|
||
|
|
<li class="blockList">
|
||
|
|
<h4>ScriptLivingBase</h4>
|
||
|
|
<pre>public ScriptLivingBase(<a href="../../../../noppes/npcs/scripted/entity/ScriptLivingBase.html" title="type parameter in ScriptLivingBase">T</a> entity)</pre>
|
||
|
|
</li>
|
||
|
|
</ul>
|
||
|
|
</li>
|
||
|
|
</ul>
|
||
|
|
<!-- ============ METHOD DETAIL ========== -->
|
||
|
|
<ul class="blockList">
|
||
|
|
<li class="blockList"><a name="method.detail">
|
||
|
|
<!-- -->
|
||
|
|
</a>
|
||
|
|
<h3>Method Detail</h3>
|
||
|
|
<a name="getHealth--">
|
||
|
|
<!-- -->
|
||
|
|
</a>
|
||
|
|
<ul class="blockList">
|
||
|
|
<li class="blockList">
|
||
|
|
<h4>getHealth</h4>
|
||
|
|
<pre>public float getHealth()</pre>
|
||
|
|
<dl>
|
||
|
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
||
|
|
<dd><code><a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntityLivingBase.html#getHealth--">getHealth</a></code> in interface <code><a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntityLivingBase.html" title="interface in noppes.npcs.scripted.interfaces.entity">IEntityLivingBase</a></code></dd>
|
||
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
||
|
|
<dd>The entity's current health</dd>
|
||
|
|
</dl>
|
||
|
|
</li>
|
||
|
|
</ul>
|
||
|
|
<a name="setHealth-float-">
|
||
|
|
<!-- -->
|
||
|
|
</a>
|
||
|
|
<ul class="blockList">
|
||
|
|
<li class="blockList">
|
||
|
|
<h4>setHealth</h4>
|
||
|
|
<pre>public void setHealth(float health)</pre>
|
||
|
|
<dl>
|
||
|
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
||
|
|
<dd><code><a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntityLivingBase.html#setHealth-float-">setHealth</a></code> in interface <code><a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntityLivingBase.html" title="interface in noppes.npcs.scripted.interfaces.entity">IEntityLivingBase</a></code></dd>
|
||
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
||
|
|
<dd><code>health</code> - The new health of this entity</dd>
|
||
|
|
</dl>
|
||
|
|
</li>
|
||
|
|
</ul>
|
||
|
|
<a name="hurt-float-">
|
||
|
|
<!-- -->
|
||
|
|
</a>
|
||
|
|
<ul class="blockList">
|
||
|
|
<li class="blockList">
|
||
|
|
<h4>hurt</h4>
|
||
|
|
<pre>public void hurt(float damage)</pre>
|
||
|
|
<dl>
|
||
|
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
||
|
|
<dd><code><a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntityLivingBase.html#hurt-float-">hurt</a></code> in interface <code><a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntityLivingBase.html" title="interface in noppes.npcs.scripted.interfaces.entity">IEntityLivingBase</a></code></dd>
|
||
|
|
</dl>
|
||
|
|
</li>
|
||
|
|
</ul>
|
||
|
|
<a name="hurt-float-noppes.npcs.scripted.interfaces.entity.IEntity-">
|
||
|
|
<!-- -->
|
||
|
|
</a>
|
||
|
|
<ul class="blockList">
|
||
|
|
<li class="blockList">
|
||
|
|
<h4>hurt</h4>
|
||
|
|
<pre>public void hurt(float damage,
|
||
|
|
<a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntity.html" title="interface in noppes.npcs.scripted.interfaces.entity">IEntity</a> source)</pre>
|
||
|
|
<dl>
|
||
|
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
||
|
|
<dd><code><a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntityLivingBase.html#hurt-float-noppes.npcs.scripted.interfaces.entity.IEntity-">hurt</a></code> in interface <code><a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntityLivingBase.html" title="interface in noppes.npcs.scripted.interfaces.entity">IEntityLivingBase</a></code></dd>
|
||
|
|
</dl>
|
||
|
|
</li>
|
||
|
|
</ul>
|
||
|
|
<a name="hurt-float-noppes.npcs.scripted.ScriptDamageSource-">
|
||
|
|
<!-- -->
|
||
|
|
</a>
|
||
|
|
<ul class="blockList">
|
||
|
|
<li class="blockList">
|
||
|
|
<h4>hurt</h4>
|
||
|
|
<pre>public void hurt(float damage,
|
||
|
|
noppes.npcs.scripted.ScriptDamageSource damageSource)</pre>
|
||
|
|
<dl>
|
||
|
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
||
|
|
<dd><code><a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntityLivingBase.html#hurt-float-noppes.npcs.scripted.ScriptDamageSource-">hurt</a></code> in interface <code><a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntityLivingBase.html" title="interface in noppes.npcs.scripted.interfaces.entity">IEntityLivingBase</a></code></dd>
|
||
|
|
</dl>
|
||
|
|
</li>
|
||
|
|
</ul>
|
||
|
|
<a name="getMaxHealth--">
|
||
|
|
<!-- -->
|
||
|
|
</a>
|
||
|
|
<ul class="blockList">
|
||
|
|
<li class="blockList">
|
||
|
|
<h4>getMaxHealth</h4>
|
||
|
|
<pre>public double getMaxHealth()</pre>
|
||
|
|
<dl>
|
||
|
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
||
|
|
<dd><code><a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntityLivingBase.html#getMaxHealth--">getMaxHealth</a></code> in interface <code><a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntityLivingBase.html" title="interface in noppes.npcs.scripted.interfaces.entity">IEntityLivingBase</a></code></dd>
|
||
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
||
|
|
<dd>Entity's max health</dd>
|
||
|
|
</dl>
|
||
|
|
</li>
|
||
|
|
</ul>
|
||
|
|
<a name="isAttacking--">
|
||
|
|
<!-- -->
|
||
|
|
</a>
|
||
|
|
<ul class="blockList">
|
||
|
|
<li class="blockList">
|
||
|
|
<h4>isAttacking</h4>
|
||
|
|
<pre>public boolean isAttacking()</pre>
|
||
|
|
<dl>
|
||
|
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
||
|
|
<dd><code><a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntityLivingBase.html#isAttacking--">isAttacking</a></code> in interface <code><a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntityLivingBase.html" title="interface in noppes.npcs.scripted.interfaces.entity">IEntityLivingBase</a></code></dd>
|
||
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
||
|
|
<dd>Whether or not this entity is attacking something</dd>
|
||
|
|
</dl>
|
||
|
|
</li>
|
||
|
|
</ul>
|
||
|
|
<a name="setAttackTarget-noppes.npcs.scripted.interfaces.entity.IEntityLivingBase-">
|
||
|
|
<!-- -->
|
||
|
|
</a>
|
||
|
|
<ul class="blockList">
|
||
|
|
<li class="blockList">
|
||
|
|
<h4>setAttackTarget</h4>
|
||
|
|
<pre>public void setAttackTarget(<a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntityLivingBase.html" title="interface in noppes.npcs.scripted.interfaces.entity">IEntityLivingBase</a> living)</pre>
|
||
|
|
<dl>
|
||
|
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
||
|
|
<dd><code><a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntityLivingBase.html#setAttackTarget-noppes.npcs.scripted.interfaces.entity.IEntityLivingBase-">setAttackTarget</a></code> in interface <code><a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntityLivingBase.html" title="interface in noppes.npcs.scripted.interfaces.entity">IEntityLivingBase</a></code></dd>
|
||
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
||
|
|
<dd><code>living</code> - Entity which this entity will attack</dd>
|
||
|
|
</dl>
|
||
|
|
</li>
|
||
|
|
</ul>
|
||
|
|
<a name="getAttackTarget--">
|
||
|
|
<!-- -->
|
||
|
|
</a>
|
||
|
|
<ul class="blockList">
|
||
|
|
<li class="blockList">
|
||
|
|
<h4>getAttackTarget</h4>
|
||
|
|
<pre>public <a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntityLivingBase.html" title="interface in noppes.npcs.scripted.interfaces.entity">IEntityLivingBase</a> getAttackTarget()</pre>
|
||
|
|
<dl>
|
||
|
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
||
|
|
<dd><code><a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntityLivingBase.html#getAttackTarget--">getAttackTarget</a></code> in interface <code><a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntityLivingBase.html" title="interface in noppes.npcs.scripted.interfaces.entity">IEntityLivingBase</a></code></dd>
|
||
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
||
|
|
<dd>The entity which this entity is attacking</dd>
|
||
|
|
</dl>
|
||
|
|
</li>
|
||
|
|
</ul>
|
||
|
|
<a name="getType--">
|
||
|
|
<!-- -->
|
||
|
|
</a>
|
||
|
|
<ul class="blockList">
|
||
|
|
<li class="blockList">
|
||
|
|
<h4>getType</h4>
|
||
|
|
<pre>public int getType()</pre>
|
||
|
|
<dl>
|
||
|
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
||
|
|
<dd><code><a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntity.html#getType--">getType</a></code> in interface <code><a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntity.html" title="interface in noppes.npcs.scripted.interfaces.entity">IEntity</a></code></dd>
|
||
|
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
||
|
|
<dd><code><a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntityLivingBase.html#getType--">getType</a></code> in interface <code><a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntityLivingBase.html" title="interface in noppes.npcs.scripted.interfaces.entity">IEntityLivingBase</a></code></dd>
|
||
|
|
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
|
||
|
|
<dd><code><a href="../../../../noppes/npcs/scripted/entity/ScriptEntity.html#getType--">getType</a></code> in class <code><a href="../../../../noppes/npcs/scripted/entity/ScriptEntity.html" title="class in noppes.npcs.scripted.entity">ScriptEntity</a><<a href="../../../../noppes/npcs/scripted/entity/ScriptLivingBase.html" title="type parameter in ScriptLivingBase">T</a> extends net.minecraft.entity.EntityLivingBase></code></dd>
|
||
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
||
|
|
<dd>Returns the EntityType of this entity</dd>
|
||
|
|
<dt><span class="seeLabel">See Also:</span></dt>
|
||
|
|
<dd><code>EntityType</code></dd>
|
||
|
|
</dl>
|
||
|
|
</li>
|
||
|
|
</ul>
|
||
|
|
<a name="typeOf-int-">
|
||
|
|
<!-- -->
|
||
|
|
</a>
|
||
|
|
<ul class="blockList">
|
||
|
|
<li class="blockList">
|
||
|
|
<h4>typeOf</h4>
|
||
|
|
<pre>public boolean typeOf(int type)</pre>
|
||
|
|
<dl>
|
||
|
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
||
|
|
<dd><code><a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntity.html#typeOf-int-">typeOf</a></code> in interface <code><a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntity.html" title="interface in noppes.npcs.scripted.interfaces.entity">IEntity</a></code></dd>
|
||
|
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
||
|
|
<dd><code><a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntityLivingBase.html#typeOf-int-">typeOf</a></code> in interface <code><a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntityLivingBase.html" title="interface in noppes.npcs.scripted.interfaces.entity">IEntityLivingBase</a></code></dd>
|
||
|
|
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
|
||
|
|
<dd><code><a href="../../../../noppes/npcs/scripted/entity/ScriptEntity.html#typeOf-int-">typeOf</a></code> in class <code><a href="../../../../noppes/npcs/scripted/entity/ScriptEntity.html" title="class in noppes.npcs.scripted.entity">ScriptEntity</a><<a href="../../../../noppes/npcs/scripted/entity/ScriptLivingBase.html" title="type parameter in ScriptLivingBase">T</a> extends net.minecraft.entity.EntityLivingBase></code></dd>
|
||
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
||
|
|
<dd><code>type</code> - @EntityType to check</dd>
|
||
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
||
|
|
<dd>Returns whether the entity is type of the given @EntityType</dd>
|
||
|
|
</dl>
|
||
|
|
</li>
|
||
|
|
</ul>
|
||
|
|
<a name="canSeeEntity-noppes.npcs.scripted.interfaces.entity.IEntity-">
|
||
|
|
<!-- -->
|
||
|
|
</a>
|
||
|
|
<ul class="blockList">
|
||
|
|
<li class="blockList">
|
||
|
|
<h4>canSeeEntity</h4>
|
||
|
|
<pre>public boolean canSeeEntity(<a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntity.html" title="interface in noppes.npcs.scripted.interfaces.entity">IEntity</a> entity)</pre>
|
||
|
|
<dl>
|
||
|
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
||
|
|
<dd><code><a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntityLivingBase.html#canSeeEntity-noppes.npcs.scripted.interfaces.entity.IEntity-">canSeeEntity</a></code> in interface <code><a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntityLivingBase.html" title="interface in noppes.npcs.scripted.interfaces.entity">IEntityLivingBase</a></code></dd>
|
||
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
||
|
|
<dd><code>entity</code> - Entity to check</dd>
|
||
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
||
|
|
<dd>Whether or not this entity can see the given entity</dd>
|
||
|
|
</dl>
|
||
|
|
</li>
|
||
|
|
</ul>
|
||
|
|
<a name="getMCEntity--">
|
||
|
|
<!-- -->
|
||
|
|
</a>
|
||
|
|
<ul class="blockList">
|
||
|
|
<li class="blockList">
|
||
|
|
<h4>getMCEntity</h4>
|
||
|
|
<pre>public <a href="../../../../noppes/npcs/scripted/entity/ScriptLivingBase.html" title="type parameter in ScriptLivingBase">T</a> getMCEntity()</pre>
|
||
|
|
<div class="block">Expert use only</div>
|
||
|
|
<dl>
|
||
|
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
||
|
|
<dd><code><a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntity.html#getMCEntity--">getMCEntity</a></code> in interface <code><a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntity.html" title="interface in noppes.npcs.scripted.interfaces.entity">IEntity</a></code></dd>
|
||
|
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
||
|
|
<dd><code><a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntityLivingBase.html#getMCEntity--">getMCEntity</a></code> in interface <code><a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntityLivingBase.html" title="interface in noppes.npcs.scripted.interfaces.entity">IEntityLivingBase</a></code></dd>
|
||
|
|
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
|
||
|
|
<dd><code><a href="../../../../noppes/npcs/scripted/entity/ScriptEntity.html#getMCEntity--">getMCEntity</a></code> in class <code><a href="../../../../noppes/npcs/scripted/entity/ScriptEntity.html" title="class in noppes.npcs.scripted.entity">ScriptEntity</a><<a href="../../../../noppes/npcs/scripted/entity/ScriptLivingBase.html" title="type parameter in ScriptLivingBase">T</a> extends net.minecraft.entity.EntityLivingBase></code></dd>
|
||
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
||
|
|
<dd>Returns the minecraft entity object</dd>
|
||
|
|
</dl>
|
||
|
|
</li>
|
||
|
|
</ul>
|
||
|
|
<a name="getMinecraftEntity--">
|
||
|
|
<!-- -->
|
||
|
|
</a>
|
||
|
|
<ul class="blockList">
|
||
|
|
<li class="blockList">
|
||
|
|
<h4>getMinecraftEntity</h4>
|
||
|
|
<pre>public <a href="../../../../noppes/npcs/scripted/entity/ScriptLivingBase.html" title="type parameter in ScriptLivingBase">T</a> getMinecraftEntity()</pre>
|
||
|
|
</li>
|
||
|
|
</ul>
|
||
|
|
<a name="swingHand--">
|
||
|
|
<!-- -->
|
||
|
|
</a>
|
||
|
|
<ul class="blockList">
|
||
|
|
<li class="blockList">
|
||
|
|
<h4>swingHand</h4>
|
||
|
|
<pre>public void swingHand()</pre>
|
||
|
|
<div class="block">Makes the entity swing its hand</div>
|
||
|
|
<dl>
|
||
|
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
||
|
|
<dd><code><a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntityLivingBase.html#swingHand--">swingHand</a></code> in interface <code><a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntityLivingBase.html" title="interface in noppes.npcs.scripted.interfaces.entity">IEntityLivingBase</a></code></dd>
|
||
|
|
</dl>
|
||
|
|
</li>
|
||
|
|
</ul>
|
||
|
|
<a name="getLookVec--">
|
||
|
|
<!-- -->
|
||
|
|
</a>
|
||
|
|
<ul class="blockList">
|
||
|
|
<li class="blockList">
|
||
|
|
<h4>getLookVec</h4>
|
||
|
|
<pre>public java.lang.String getLookVec()</pre>
|
||
|
|
</li>
|
||
|
|
</ul>
|
||
|
|
<a name="addPotionEffect-int-int-int-boolean-">
|
||
|
|
<!-- -->
|
||
|
|
</a>
|
||
|
|
<ul class="blockList">
|
||
|
|
<li class="blockList">
|
||
|
|
<h4>addPotionEffect</h4>
|
||
|
|
<pre>public void addPotionEffect(int effect,
|
||
|
|
int duration,
|
||
|
|
int strength,
|
||
|
|
boolean hideParticles)</pre>
|
||
|
|
<div class="block">Works the same as the <a href="http://minecraft.gamepedia.com/Commands#effect">/effect command</a></div>
|
||
|
|
<dl>
|
||
|
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
||
|
|
<dd><code><a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntityLivingBase.html#addPotionEffect-int-int-int-boolean-">addPotionEffect</a></code> in interface <code><a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntityLivingBase.html" title="interface in noppes.npcs.scripted.interfaces.entity">IEntityLivingBase</a></code></dd>
|
||
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
||
|
|
<dd><code>effect</code> - </dd>
|
||
|
|
<dd><code>duration</code> - The duration in seconds</dd>
|
||
|
|
<dd><code>strength</code> - The amplifier of the potion effect</dd>
|
||
|
|
<dd><code>hideParticles</code> - Whether or not you want to hide potion particles</dd>
|
||
|
|
</dl>
|
||
|
|
</li>
|
||
|
|
</ul>
|
||
|
|
<a name="clearPotionEffects--">
|
||
|
|
<!-- -->
|
||
|
|
</a>
|
||
|
|
<ul class="blockList">
|
||
|
|
<li class="blockList">
|
||
|
|
<h4>clearPotionEffects</h4>
|
||
|
|
<pre>public void clearPotionEffects()</pre>
|
||
|
|
<div class="block">Clears all potion effects</div>
|
||
|
|
<dl>
|
||
|
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
||
|
|
<dd><code><a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntityLivingBase.html#clearPotionEffects--">clearPotionEffects</a></code> in interface <code><a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntityLivingBase.html" title="interface in noppes.npcs.scripted.interfaces.entity">IEntityLivingBase</a></code></dd>
|
||
|
|
</dl>
|
||
|
|
</li>
|
||
|
|
</ul>
|
||
|
|
<a name="getPotionEffect-int-">
|
||
|
|
<!-- -->
|
||
|
|
</a>
|
||
|
|
<ul class="blockList">
|
||
|
|
<li class="blockList">
|
||
|
|
<h4>getPotionEffect</h4>
|
||
|
|
<pre>public int getPotionEffect(int effect)</pre>
|
||
|
|
<dl>
|
||
|
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
||
|
|
<dd><code><a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntityLivingBase.html#getPotionEffect-int-">getPotionEffect</a></code> in interface <code><a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntityLivingBase.html" title="interface in noppes.npcs.scripted.interfaces.entity">IEntityLivingBase</a></code></dd>
|
||
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
||
|
|
<dd><code>effect</code> - Potion effect to check</dd>
|
||
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
||
|
|
<dd>Returns -1 if its not active. Otherwise returns the strenght of the potion</dd>
|
||
|
|
<dt><span class="simpleTagLabel">Since:</span></dt>
|
||
|
|
<dd>1.7.10c</dd>
|
||
|
|
</dl>
|
||
|
|
</li>
|
||
|
|
</ul>
|
||
|
|
<a name="getHeldItem--">
|
||
|
|
<!-- -->
|
||
|
|
</a>
|
||
|
|
<ul class="blockList">
|
||
|
|
<li class="blockList">
|
||
|
|
<h4>getHeldItem</h4>
|
||
|
|
<pre>public <a href="../../../../noppes/npcs/scripted/interfaces/item/IItemStack.html" title="interface in noppes.npcs.scripted.interfaces.item">IItemStack</a> getHeldItem()</pre>
|
||
|
|
<div class="block">Note not all Living Entities support this</div>
|
||
|
|
<dl>
|
||
|
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
||
|
|
<dd><code><a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntityLivingBase.html#getHeldItem--">getHeldItem</a></code> in interface <code><a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntityLivingBase.html" title="interface in noppes.npcs.scripted.interfaces.entity">IEntityLivingBase</a></code></dd>
|
||
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
||
|
|
<dd>The item the entity is holding</dd>
|
||
|
|
<dt><span class="simpleTagLabel">Since:</span></dt>
|
||
|
|
<dd>1.7.10c</dd>
|
||
|
|
</dl>
|
||
|
|
</li>
|
||
|
|
</ul>
|
||
|
|
<a name="setHeldItem-noppes.npcs.scripted.interfaces.item.IItemStack-">
|
||
|
|
<!-- -->
|
||
|
|
</a>
|
||
|
|
<ul class="blockList">
|
||
|
|
<li class="blockList">
|
||
|
|
<h4>setHeldItem</h4>
|
||
|
|
<pre>public void setHeldItem(<a href="../../../../noppes/npcs/scripted/interfaces/item/IItemStack.html" title="interface in noppes.npcs.scripted.interfaces.item">IItemStack</a> item)</pre>
|
||
|
|
<div class="block">Note not all Living Entities support this</div>
|
||
|
|
<dl>
|
||
|
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
||
|
|
<dd><code><a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntityLivingBase.html#setHeldItem-noppes.npcs.scripted.interfaces.item.IItemStack-">setHeldItem</a></code> in interface <code><a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntityLivingBase.html" title="interface in noppes.npcs.scripted.interfaces.entity">IEntityLivingBase</a></code></dd>
|
||
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
||
|
|
<dd><code>item</code> - The item to be set</dd>
|
||
|
|
<dt><span class="simpleTagLabel">Since:</span></dt>
|
||
|
|
<dd>1.7.10c</dd>
|
||
|
|
</dl>
|
||
|
|
</li>
|
||
|
|
</ul>
|
||
|
|
<a name="getArmor-int-">
|
||
|
|
<!-- -->
|
||
|
|
</a>
|
||
|
|
<ul class="blockList">
|
||
|
|
<li class="blockList">
|
||
|
|
<h4>getArmor</h4>
|
||
|
|
<pre>public <a href="../../../../noppes/npcs/scripted/interfaces/item/IItemStack.html" title="interface in noppes.npcs.scripted.interfaces.item">IItemStack</a> getArmor(int slot)</pre>
|
||
|
|
<div class="block">Note not all Living Entities support this</div>
|
||
|
|
<dl>
|
||
|
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
||
|
|
<dd><code><a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntityLivingBase.html#getArmor-int-">getArmor</a></code> in interface <code><a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntityLivingBase.html" title="interface in noppes.npcs.scripted.interfaces.entity">IEntityLivingBase</a></code></dd>
|
||
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
||
|
|
<dd><code>slot</code> - Slot of what armor piece to get, 0:boots, 1:pants, 2:body, 3:head</dd>
|
||
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
||
|
|
<dd>The item in the given slot</dd>
|
||
|
|
</dl>
|
||
|
|
</li>
|
||
|
|
</ul>
|
||
|
|
<a name="setArmor-int-noppes.npcs.scripted.interfaces.item.IItemStack-">
|
||
|
|
<!-- -->
|
||
|
|
</a>
|
||
|
|
<ul class="blockListLast">
|
||
|
|
<li class="blockList">
|
||
|
|
<h4>setArmor</h4>
|
||
|
|
<pre>public void setArmor(int slot,
|
||
|
|
<a href="../../../../noppes/npcs/scripted/interfaces/item/IItemStack.html" title="interface in noppes.npcs.scripted.interfaces.item">IItemStack</a> item)</pre>
|
||
|
|
<div class="block">Note not all Living Entities support this</div>
|
||
|
|
<dl>
|
||
|
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
||
|
|
<dd><code><a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntityLivingBase.html#setArmor-int-noppes.npcs.scripted.interfaces.item.IItemStack-">setArmor</a></code> in interface <code><a href="../../../../noppes/npcs/scripted/interfaces/entity/IEntityLivingBase.html" title="interface in noppes.npcs.scripted.interfaces.entity">IEntityLivingBase</a></code></dd>
|
||
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
||
|
|
<dd><code>slot</code> - Slot of what armor piece to set, 0:boots, 1:pants, 2:body, 3:head</dd>
|
||
|
|
<dd><code>item</code> - Item to be set</dd>
|
||
|
|
<dt><span class="simpleTagLabel">Since:</span></dt>
|
||
|
|
<dd>1.7.10c</dd>
|
||
|
|
</dl>
|
||
|
|
</li>
|
||
|
|
</ul>
|
||
|
|
</li>
|
||
|
|
</ul>
|
||
|
|
</li>
|
||
|
|
</ul>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<!-- ========= END OF CLASS DATA ========= -->
|
||
|
|
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
||
|
|
<div class="bottomNav"><a name="navbar.bottom">
|
||
|
|
<!-- -->
|
||
|
|
</a>
|
||
|
|
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
|
||
|
|
<a name="navbar.bottom.firstrow">
|
||
|
|
<!-- -->
|
||
|
|
</a>
|
||
|
|
<ul class="navList" title="Navigation">
|
||
|
|
<li><a href="../../../../overview-summary.html">Overview</a></li>
|
||
|
|
<li><a href="package-summary.html">Package</a></li>
|
||
|
|
<li class="navBarCell1Rev">Class</li>
|
||
|
|
<li><a href="package-tree.html">Tree</a></li>
|
||
|
|
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
|
||
|
|
<li><a href="../../../../index-files/index-1.html">Index</a></li>
|
||
|
|
<li><a href="../../../../help-doc.html">Help</a></li>
|
||
|
|
</ul>
|
||
|
|
</div>
|
||
|
|
<div class="subNav">
|
||
|
|
<ul class="navList">
|
||
|
|
<li><a href="../../../../noppes/npcs/scripted/entity/ScriptLiving.html" title="class in noppes.npcs.scripted.entity"><span class="typeNameLink">Prev Class</span></a></li>
|
||
|
|
<li><a href="../../../../noppes/npcs/scripted/entity/ScriptMonster.html" title="class in noppes.npcs.scripted.entity"><span class="typeNameLink">Next Class</span></a></li>
|
||
|
|
</ul>
|
||
|
|
<ul class="navList">
|
||
|
|
<li><a href="../../../../index.html?noppes/npcs/scripted/entity/ScriptLivingBase.html" target="_top">Frames</a></li>
|
||
|
|
<li><a href="ScriptLivingBase.html" target="_top">No Frames</a></li>
|
||
|
|
</ul>
|
||
|
|
<ul class="navList" id="allclasses_navbar_bottom">
|
||
|
|
<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
|
||
|
|
</ul>
|
||
|
|
<div>
|
||
|
|
<script type="text/javascript"><!--
|
||
|
|
allClassesLink = document.getElementById("allclasses_navbar_bottom");
|
||
|
|
if(window==top) {
|
||
|
|
allClassesLink.style.display = "block";
|
||
|
|
}
|
||
|
|
else {
|
||
|
|
allClassesLink.style.display = "none";
|
||
|
|
}
|
||
|
|
//-->
|
||
|
|
</script>
|
||
|
|
</div>
|
||
|
|
<div>
|
||
|
|
<ul class="subNavList">
|
||
|
|
<li>Summary: </li>
|
||
|
|
<li>Nested | </li>
|
||
|
|
<li>Field | </li>
|
||
|
|
<li><a href="#constructor.summary">Constr</a> | </li>
|
||
|
|
<li><a href="#method.summary">Method</a></li>
|
||
|
|
</ul>
|
||
|
|
<ul class="subNavList">
|
||
|
|
<li>Detail: </li>
|
||
|
|
<li>Field | </li>
|
||
|
|
<li><a href="#constructor.detail">Constr</a> | </li>
|
||
|
|
<li><a href="#method.detail">Method</a></li>
|
||
|
|
</ul>
|
||
|
|
</div>
|
||
|
|
<a name="skip.navbar.bottom">
|
||
|
|
<!-- -->
|
||
|
|
</a></div>
|
||
|
|
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
||
|
|
</body>
|
||
|
|
</html>
|