2024-03-20 02:28:51 -04:00
<!DOCTYPE HTML>
<!-- NewPage -->
< html lang = "en" >
< head >
2025-05-29 16:27:42 -04:00
<!-- Generated by javadoc (11.0.20) on Thu May 29 16:24:46 EDT 2025 -->
2024-03-20 02:28:51 -04:00
< title > IEntityItem</ title >
< meta http-equiv = "Content-Type" content = "text/html; charset=utf-8" >
2025-05-29 16:27:42 -04:00
< meta name = "dc.created" content = "2025-05-29" >
2024-03-20 02:28:51 -04:00
< 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.6.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 = "IEntityItem" ;
}
}
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 };
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 IEntityItem" class = "title" > Interface IEntityItem< T extends net.minecraft.entity.item.EntityItem> </ h2 >
</ div >
< div class = "contentContainer" >
< div class = "description" >
< ul class = "blockList" >
< li class = "blockList" >
< dl >
2025-05-29 16:27:42 -04:00
< dt >< span class = "paramLabel" > Type Parameters:</ span ></ dt >
< dd >< code > T</ code > - The underlying Minecraft EntityItem type.</ dd >
</ dl >
< dl >
2024-03-20 02:28:51 -04:00
< dt > All Superinterfaces:</ dt >
< dd >< code >< a href = "IEntity.html" title = "interface in noppes.npcs.api.entity" > IEntity</ a > < T> </ code ></ dd >
</ dl >
< hr >
< pre > public interface < span class = "typeNameLabel" > IEntityItem< T extends net.minecraft.entity.item.EntityItem> </ span >
extends < a href = "IEntity.html" title = "interface in noppes.npcs.api.entity" > IEntity</ a > < T> </ pre >
2025-05-29 16:27:42 -04:00
< div class = "block" > Represents an item entity in the world.
Provides methods to manage pickup delay, age, ownership, and the contained item.</ div >
2024-03-20 02:28:51 -04:00
</ 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 > long</ code ></ td >
< th class = "colSecond" scope = "row" >< code >< span class = "memberNameLink" >< a href = "#getAge()" > getAge</ a ></ span > ()</ code ></ th >
< td class = "colLast" > </ td >
</ tr >
< tr id = "i1" class = "rowColor" >
< 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 = "#getItem()" > getItem</ a ></ span > ()</ code ></ th >
< td class = "colLast" > </ td >
</ tr >
< tr id = "i2" class = "altColor" >
< td class = "colFirst" >< code > int</ code ></ td >
< th class = "colSecond" scope = "row" >< code >< span class = "memberNameLink" >< a href = "#getLifeSpawn()" > getLifeSpawn</ a ></ span > ()</ code ></ th >
< td class = "colLast" > </ td >
</ tr >
< tr id = "i3" class = "rowColor" >
< td class = "colFirst" >< code > java.lang.String</ code ></ td >
< th class = "colSecond" scope = "row" >< code >< span class = "memberNameLink" >< a href = "#getOwner()" > getOwner</ a ></ span > ()</ code ></ th >
2025-05-29 16:27:42 -04:00
< td class = "colLast" >
< div class = "block" > Returns the owner name of the item.</ div >
</ td >
2024-03-20 02:28:51 -04:00
</ tr >
< tr id = "i4" class = "altColor" >
< td class = "colFirst" >< code > int</ code ></ td >
< th class = "colSecond" scope = "row" >< code >< span class = "memberNameLink" >< a href = "#getPickupDelay()" > getPickupDelay</ a ></ span > ()</ code ></ th >
< td class = "colLast" > </ td >
</ tr >
< tr id = "i5" class = "rowColor" >
< td class = "colFirst" >< code > java.lang.String</ code ></ td >
< th class = "colSecond" scope = "row" >< code >< span class = "memberNameLink" >< a href = "#getThrower()" > getThrower</ a ></ span > ()</ code ></ th >
2025-05-29 16:27:42 -04:00
< td class = "colLast" >
< div class = "block" > Returns the thrower (entity that threw the item).</ div >
</ td >
2024-03-20 02:28:51 -04:00
</ tr >
< tr id = "i6" class = "altColor" >
< td class = "colFirst" >< code > void</ code ></ td >
< th class = "colSecond" scope = "row" >< code >< span class = "memberNameLink" >< a href = "#setAge(long)" > setAge</ a ></ span > ​ (long age)</ code ></ th >
2025-05-29 16:27:42 -04:00
< td class = "colLast" >
< div class = "block" > Sets the age of the item.</ div >
</ td >
2024-03-20 02:28:51 -04:00
</ tr >
< tr id = "i7" class = "rowColor" >
< td class = "colFirst" >< code > void</ code ></ td >
< th class = "colSecond" scope = "row" >< code >< span class = "memberNameLink" >< a href = "#setItem(noppes.npcs.api.item.IItemStack)" > setItem</ a ></ span > ​ (< a href = "../item/IItemStack.html" title = "interface in noppes.npcs.api.item" > IItemStack</ a > item)</ code ></ th >
2025-05-29 16:27:42 -04:00
< td class = "colLast" >
< div class = "block" > Sets the item contained in this entity.</ div >
</ td >
2024-03-20 02:28:51 -04:00
</ tr >
< tr id = "i8" class = "altColor" >
< td class = "colFirst" >< code > void</ code ></ td >
< th class = "colSecond" scope = "row" >< code >< span class = "memberNameLink" >< a href = "#setLifeSpawn(int)" > setLifeSpawn</ a ></ span > ​ (int age)</ code ></ th >
2025-05-29 16:27:42 -04:00
< td class = "colLast" >
< div class = "block" > Sets the age threshold at which the item will despawn.</ div >
</ td >
2024-03-20 02:28:51 -04:00
</ tr >
< tr id = "i9" class = "rowColor" >
< td class = "colFirst" >< code > void</ code ></ td >
< th class = "colSecond" scope = "row" >< code >< span class = "memberNameLink" >< a href = "#setOwner(java.lang.String)" > setOwner</ a ></ span > ​ (java.lang.String name)</ code ></ th >
2025-05-29 16:27:42 -04:00
< td class = "colLast" >
< div class = "block" > Sets the owner name of the item.</ div >
</ td >
2024-03-20 02:28:51 -04:00
</ tr >
< tr id = "i10" class = "altColor" >
< td class = "colFirst" >< code > void</ code ></ td >
< th class = "colSecond" scope = "row" >< code >< span class = "memberNameLink" >< a href = "#setPickupDelay(int)" > setPickupDelay</ a ></ span > ​ (int delay)</ code ></ th >
2025-05-29 16:27:42 -04:00
< td class = "colLast" >
< div class = "block" > Sets the delay before the item can be picked up.</ div >
</ td >
2024-03-20 02:28:51 -04:00
</ tr >
< tr id = "i11" class = "rowColor" >
< td class = "colFirst" >< code > void</ code ></ td >
< th class = "colSecond" scope = "row" >< code >< span class = "memberNameLink" >< a href = "#setThrower(java.lang.String)" > setThrower</ a ></ span > ​ (java.lang.String name)</ code ></ th >
2025-05-29 16:27:42 -04:00
< td class = "colLast" >
< div class = "block" > Sets the thrower (entity that threw the item).</ div >
</ td >
2024-03-20 02:28:51 -04:00
</ 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#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#getDimension()" > getDimension</ a > , < a href = "IEntity.html#getEntityId()" > getEntityId</ a > , < a href = "IEntity.html#getHeight()" > getHeight</ a > , < a href = "IEntity.html#getMCEntity()" > getMCEntity</ a > , < a href = "IEntity.html#getMotion()" > getMotion</ a > , < a href = "IEntity.html#getMotionX()" > getMotionX</ a > , < a href = "IEntity.html#getMotionY()" > getMotionY</ a > , < a href = "IEntity.html#getMotionZ()" > getMotionZ</ a > , < a href = "IEntity.html#getMount()" > getMount</ a > , < a href = "IEntity.html#getNbt()" > getNbt</ a > , < a href = "IEntity.html#getNbtOptional()" > getNbtOptional</ a > , < a href = "IEntity.html#getPitch()" > getPitch</ a > , < a href = "IEntity.html#getPosition()" > getPosition</ a > , < a href = "IEntity.html#getRider()" > getRider</ a > , < a href = "IEntity.html#getRotation()" > getRotation</ a > , < a href = "IEntity.html#getStoredData(java.lang.String)" > getStoredData</ a > , < a href = "IEntity.html#getStoredDataKeys()" > getStoredDataKeys</ a > , < a href = "IEntity.html#getSurroundingEntities(int)" > getSurroundingEntities</ a > , < a href = "IEntity.html#getSurroundingEntities(int,int)" > getSurroundingEntities</ a > , < a href = "IEntity.html#getTempData(java.lang.String)" > getTempData</ a > , < a href = "IEntity.html#getTempDataKeys()" > getTempDataKeys</ a > , < a href = "IEntity.html#getType()" > getType</ a > , < a href = "IEntity.html#getTypeName()" > getTypeName</ a > , < a href = "IEntity.html#getUniqueID()" > getUniqueID</ a > , < a href = "IEntity.html#getWidth()" > getWidth</ a > , < a href = "IEntity.html#getWorld()" > getWorld</ a > , < a href = "IEntity.html#getX()" > getX</ a > , < a href = "IEntity.html#getY()" > getY</ a > , < a href = "IEntity.html#getYOffset()" > getYOffset</ a > , < a href = "IEntity.html#getZ()" > getZ</ a > , < a href = "IEntity.html#hasCollided()" > hasCollided</ a > , < a href = "IEntity.html#hasCollidedHorizontally()" > hasCollidedHorizontally</ a > , < a href = "IEntity.html#hasCollidedVertically()" > hasCollidedVertically</ a > , < a href = "IEntity.html#hasStoredData(java.lang.String)" > hasStoredData</ a > , < a href = "IEntity.html#hasTempData(java.lang.String)" > hasTempData</ a > , < a href = "IEntity.html#inFire()" > inFire</ a > , < a href = "IEntity.html#inLava()" > inLava</ a > , < a href = "IEntity.html#inWater()" > inWater</ a > , < a href = "IEntity.html#isAirborne()" > isAirborne</ a > , < a href = "IEntity.html#isAlive()" > isAlive</ a > , < a href = "IEntity.html#isBurning()" > isBurning</ a > , < a href = "IEntity.html#isSneaking()" > isSneaking</ a > , < a href = "IEntity.html#isSprinting()" > isSprinting</ a > , < a href = "IEntity.html#knockback(double,double,double,float)" > knockback</ a > , < a href = "IEntity.html#knockback(int,float)" > knockback</ a > , < a href = "IEntity.html#knockback(noppes.npcs.api.IPos,float)" > knockback</ a > , < a href = "IEntity.html#removeStoredData(java.lang.String)" > removeStoredData</ a > , < a href = "IEntity.html#removeTempData(java.lang.String)" > removeTempData</ a > , < a href = "IEntity.html#setBurning(int)" > setBurning</ a > , < a href = "IEntity.html#setCapturedDrops(noppes.npcs.api.entity.IEntity%5B%5D)" > setCapturedDrops</ a > , < a href = "IEntity.html#setCapturesDrops(boolean)" > setCapturesDrops</ a > , < a href = "IEntity.html#setDimension(int)" > setDimension</ a > , < a href = "IEntity.html#setImmune(int)" > setImmune</ a > , < a href = "IEntity.html#setInvisible(boolean)" > setInvisible</ a > , < a href = "IEntity.html#setMotion(double,double,double)" > setMotion</ a > , < a href = "IEntity.html#setMotion(noppes.npcs.api.IPos)" > setMotion</ a > , < a href = "IEntity.html#setMotionX(double)" > setMotionX</ a > , < a href = "IEntity.html#setMotionY(double)" > setMotionY</ a > , < a href = "IEntity.html#setMotionZ(double)" > setMotionZ</ a > , < a href = "IEntity.h
</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 = "getOwner()" >
<!-- -->
</ a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > getOwner</ h4 >
< pre class = "methodSignature" > java.lang.String getOwner()</ pre >
2025-05-29 16:27:42 -04:00
< div class = "block" > Returns the owner name of the item.
Only the owner can pick the item up (unless the age is very low).</ div >
2024-03-20 02:28:51 -04:00
< dl >
< dt >< span class = "returnLabel" > Returns:</ span ></ dt >
2025-05-29 16:27:42 -04:00
< dd > the owner's name.</ dd >
2024-03-20 02:28:51 -04:00
</ dl >
</ li >
</ ul >
< a id = "setOwner(java.lang.String)" >
<!-- -->
</ a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > setOwner</ h4 >
< pre class = "methodSignature" > void setOwner​ (java.lang.String name)</ pre >
2025-05-29 16:27:42 -04:00
< div class = "block" > Sets the owner name of the item.</ div >
2024-03-20 02:28:51 -04:00
< dl >
< dt >< span class = "paramLabel" > Parameters:</ span ></ dt >
2025-05-29 16:27:42 -04:00
< dd >< code > name</ code > - the owner's name.</ dd >
2024-03-20 02:28:51 -04:00
</ dl >
</ li >
</ ul >
< a id = "getThrower()" >
<!-- -->
</ a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > getThrower</ h4 >
< pre class = "methodSignature" > java.lang.String getThrower()</ pre >
2025-05-29 16:27:42 -04:00
< div class = "block" > Returns the thrower (entity that threw the item).</ div >
< dl >
< dt >< span class = "returnLabel" > Returns:</ span ></ dt >
< dd > the thrower's name.</ dd >
</ dl >
2024-03-20 02:28:51 -04:00
</ li >
</ ul >
< a id = "setThrower(java.lang.String)" >
<!-- -->
</ a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > setThrower</ h4 >
< pre class = "methodSignature" > void setThrower​ (java.lang.String name)</ pre >
2025-05-29 16:27:42 -04:00
< div class = "block" > Sets the thrower (entity that threw the item).</ div >
< dl >
< dt >< span class = "paramLabel" > Parameters:</ span ></ dt >
< dd >< code > name</ code > - the thrower's name.</ dd >
</ dl >
2024-03-20 02:28:51 -04:00
</ li >
</ ul >
< a id = "getPickupDelay()" >
<!-- -->
</ a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > getPickupDelay</ h4 >
< pre class = "methodSignature" > int getPickupDelay()</ pre >
< dl >
< dt >< span class = "returnLabel" > Returns:</ span ></ dt >
2025-05-29 16:27:42 -04:00
< dd > Ticks remaining before the item can be picked up.
(32767 indicates an infinite delay.)</ dd >
2024-03-20 02:28:51 -04:00
</ dl >
</ li >
</ ul >
< a id = "setPickupDelay(int)" >
<!-- -->
</ a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > setPickupDelay</ h4 >
< pre class = "methodSignature" > void setPickupDelay​ (int delay)</ pre >
2025-05-29 16:27:42 -04:00
< div class = "block" > Sets the delay before the item can be picked up.</ div >
2024-03-20 02:28:51 -04:00
< dl >
< dt >< span class = "paramLabel" > Parameters:</ span ></ dt >
2025-05-29 16:27:42 -04:00
< dd >< code > delay</ code > - the pickup delay in ticks (32767 for infinite delay).</ dd >
2024-03-20 02:28:51 -04:00
</ dl >
</ li >
</ ul >
< a id = "getAge()" >
<!-- -->
</ a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > getAge</ h4 >
< pre class = "methodSignature" > long getAge()</ pre >
< dl >
< dt >< span class = "overrideSpecifyLabel" > Specified by:</ span ></ dt >
< dd >< code >< a href = "IEntity.html#getAge()" > getAge</ a ></ code > in interface < code >< a href = "IEntity.html" title = "interface in noppes.npcs.api.entity" > IEntity</ a > < < a href = "IEntityItem.html" title = "type parameter in IEntityItem" > T</ a > extends net.minecraft.entity.item.EntityItem> </ code ></ dd >
< dt >< span class = "returnLabel" > Returns:</ span ></ dt >
2025-05-29 16:27:42 -04:00
< dd > The age of the item in ticks.</ dd >
2024-03-20 02:28:51 -04:00
</ dl >
</ li >
</ ul >
< a id = "setAge(long)" >
<!-- -->
</ a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > setAge</ h4 >
< pre class = "methodSignature" > void setAge​ (long age)</ pre >
2025-05-29 16:27:42 -04:00
< div class = "block" > Sets the age of the item.</ div >
2024-03-20 02:28:51 -04:00
< dl >
< dt >< span class = "paramLabel" > Parameters:</ span ></ dt >
2025-05-29 16:27:42 -04:00
< dd >< code > age</ code > - the new age (−32767 indicates infinite age).</ dd >
2024-03-20 02:28:51 -04:00
</ dl >
</ li >
</ ul >
< a id = "getLifeSpawn()" >
<!-- -->
</ a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > getLifeSpawn</ h4 >
< pre class = "methodSignature" > int getLifeSpawn()</ pre >
< dl >
< dt >< span class = "returnLabel" > Returns:</ span ></ dt >
2025-05-29 16:27:42 -04:00
< dd > The lifespan threshold; when the age reaches this, the item despawns.</ dd >
2024-03-20 02:28:51 -04:00
</ dl >
</ li >
</ ul >
< a id = "setLifeSpawn(int)" >
<!-- -->
</ a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > setLifeSpawn</ h4 >
< pre class = "methodSignature" > void setLifeSpawn​ (int age)</ pre >
2025-05-29 16:27:42 -04:00
< div class = "block" > Sets the age threshold at which the item will despawn.</ div >
2024-03-20 02:28:51 -04:00
< dl >
< dt >< span class = "paramLabel" > Parameters:</ span ></ dt >
2025-05-29 16:27:42 -04:00
< dd >< code > age</ code > - the lifespan in ticks.</ dd >
2024-03-20 02:28:51 -04:00
</ dl >
</ li >
</ ul >
< a id = "getItem()" >
<!-- -->
</ a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > getItem</ h4 >
< pre class = "methodSignature" >< a href = "../item/IItemStack.html" title = "interface in noppes.npcs.api.item" > IItemStack</ a > getItem()</ pre >
2025-05-29 16:27:42 -04:00
< dl >
< dt >< span class = "returnLabel" > Returns:</ span ></ dt >
< dd > The item contained in this entity.</ dd >
</ dl >
2024-03-20 02:28:51 -04:00
</ li >
</ ul >
< a id = "setItem(noppes.npcs.api.item.IItemStack)" >
<!-- -->
</ a >
< ul class = "blockListLast" >
< li class = "blockList" >
< h4 > setItem</ h4 >
< pre class = "methodSignature" > void setItem​ (< a href = "../item/IItemStack.html" title = "interface in noppes.npcs.api.item" > IItemStack</ a > item)</ pre >
2025-05-29 16:27:42 -04:00
< div class = "block" > Sets the item contained in this entity.</ div >
< dl >
< dt >< span class = "paramLabel" > Parameters:</ span ></ dt >
< dd >< code > item</ code > - the item to set.</ dd >
</ dl >
2024-03-20 02:28:51 -04:00
</ 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 >