public class EntityItem extends Entity
Entity.EnumEntitySize| Modifier and Type | Field and Description |
|---|---|
int |
age
The age of this EntityItem (used to animate it up and down as well as expire it)
|
int |
delayBeforeCanPickup |
float |
hoverStart
The EntityItem's random initial float height.
|
int |
lifespan
The maximum age of this EntityItem.
|
addedToChunk, boundingBox, capturedDrops, captureDrops, chunkCoordX, chunkCoordY, chunkCoordZ, dataWatcher, dimension, distanceWalkedModified, distanceWalkedOnStepModified, entityCollisionReduction, entityUniqueID, extendedProperties, fallDistance, field_70135_K, fireResistance, forceSpawn, height, hurtResistantTime, ignoreFrustumCheck, inPortal, inWater, isAirBorne, isCollided, isCollidedHorizontally, isCollidedVertically, isDead, isImmuneToFire, isInWeb, lastTickPosX, lastTickPosY, lastTickPosZ, motionX, motionY, motionZ, myEntitySize, noClip, onGround, portalCounter, posX, posY, posZ, prevDistanceWalkedModified, preventEntitySpawning, prevPosX, prevPosY, prevPosZ, prevRotationPitch, prevRotationYaw, rand, renderDistanceWeight, riddenByEntity, ridingEntity, rotationPitch, rotationYaw, serverPosX, serverPosY, serverPosZ, stepHeight, teleportDirection, ticksExisted, timeUntilPortal, velocityChanged, width, worldObj, yOffset, ySize| Constructor and Description |
|---|
EntityItem(World p_i1711_1_) |
EntityItem(World p_i1709_1_,
double p_i1709_2_,
double p_i1709_4_,
double p_i1709_6_) |
EntityItem(World p_i1710_1_,
double p_i1710_2_,
double p_i1710_4_,
double p_i1710_6_,
ItemStack p_i1710_8_) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
attackEntityFrom(DamageSource p_70097_1_,
float p_70097_2_)
Called when the entity is attacked.
|
boolean |
canAttackWithItem()
If returns false, the item will not inflict any damage against entities.
|
protected boolean |
canTriggerWalking()
returns if this entity triggers Block.onEntityWalking on the blocks they walk on. used for spiders and wolves to
prevent them from trampling crops
|
boolean |
combineItems(EntityItem p_70289_1_)
Tries to merge this item with the item passed as the parameter.
|
protected void |
dealFireDamage(int p_70081_1_)
Will deal the specified amount of damage to the entity if the entity isn't immune to fire damage.
|
protected void |
entityInit() |
void |
func_145797_a(java.lang.String p_145797_1_) |
java.lang.String |
func_145798_i() |
void |
func_145799_b(java.lang.String p_145799_1_) |
java.lang.String |
func_145800_j() |
java.lang.String |
getCommandSenderName()
Gets the name of this command sender (usually username, but possibly "Rcon")
|
ItemStack |
getEntityItem()
Returns the ItemStack corresponding to the Entity (Note: if no item exists, will log an error but still return an
ItemStack containing Block.stone)
|
boolean |
handleWaterMovement()
Returns if this entity is in water and will end up adding the waters velocity to the entity
|
void |
onCollideWithPlayer(EntityPlayer p_70100_1_)
Called by a player entity when they collide with an entity
|
void |
onUpdate()
Called to update the entity's position/logic.
|
void |
readEntityFromNBT(NBTTagCompound p_70037_1_)
(abstract) Protected helper method to read subclass entity data from NBT.
|
void |
setAgeToCreativeDespawnTime()
sets the age of the item so that it'll despawn one minute after it has been dropped (instead of five).
|
void |
setEntityItemStack(ItemStack p_92058_1_)
Sets the ItemStack for this entity
|
void |
travelToDimension(int p_71027_1_)
Teleports the entity to another dimension.
|
void |
writeEntityToNBT(NBTTagCompound p_70014_1_)
(abstract) Protected helper method to write subclass entity data to NBT.
|
addEntityCrashInfo, addToPlayerScore, addVelocity, applyEntityCollision, canBeCollidedWith, canBePushed, canRenderOnFire, canRiderInteract, copyDataFrom, copyLocationAndAnglesFrom, doesEntityNotTriggerPressurePlate, dropItem, entityDropItem, equals, extinguish, fall, func_145748_c_, func_145771_j, func_145772_a, func_145774_a, func_145775_I, func_145778_a, func_145780_a, func_145781_i, getAir, getBoundingBox, getBrightness, getBrightnessForRender, getCollisionBorderSize, getCollisionBox, getDataWatcher, getDistance, getDistanceSq, getDistanceSqToEntity, getDistanceToEntity, getEntityData, getEntityId, getEntityString, getExtendedProperties, getEyeHeight, getFlag, getLastActiveItems, getLookVec, getMaxInPortalTime, getMaxSafePointTries, getMountedYOffset, getParts, getPersistentID, getPickedResult, getPortalCooldown, getRotationYawHead, getShadowSize, getSplashSound, getSwimSound, getTeleportDirection, getUniqueID, getYOffset, handleHealthUpdate, handleLavaMovement, hashCode, hitByEntity, interactFirst, isBurning, isCreatureType, isEating, isEntityAlive, isEntityEqual, isEntityInsideOpaqueBlock, isEntityInvulnerable, isImmuneToFire, isInRangeToRender3d, isInRangeToRenderDist, isInsideOfMaterial, isInvisible, isInvisibleToPlayer, isInWater, isOffsetPositionInLiquid, isPushedByWater, isRiding, isSneaking, isSprinting, isWet, kill, mountEntity, moveEntity, moveFlying, newDoubleNBTList, newFloatNBTList, onChunkLoad, onEntityUpdate, onKillEntity, onStruckByLightning, performHurtAnimation, playSound, preparePlayerToSpawn, readFromNBT, registerExtendedProperties, resetEntityId, setAir, setAngles, setBeenAttacked, setCurrentItemOrArmor, setDead, setEating, setEntityId, setFire, setFlag, setInPortal, setInvisible, setInWeb, setLocationAndAngles, setOnFireFromLava, setPosition, setPositionAndRotation, setPositionAndRotation2, setRotation, setRotationYawHead, setSize, setSneaking, setSprinting, setVelocity, setWorld, shouldDismountInWater, shouldRenderInPass, shouldRiderSit, shouldSetPosAfterLoading, toString, updateFallState, updateRidden, updateRiderPosition, writeMountToNBT, writeToNBT, writeToNBTOptionalpublic int age
public int delayBeforeCanPickup
public float hoverStart
public int lifespan
public EntityItem(World p_i1709_1_, double p_i1709_2_, double p_i1709_4_, double p_i1709_6_)
public EntityItem(World p_i1710_1_, double p_i1710_2_, double p_i1710_4_, double p_i1710_6_, ItemStack p_i1710_8_)
public EntityItem(World p_i1711_1_)
protected boolean canTriggerWalking()
canTriggerWalking in class Entityprotected void entityInit()
entityInit in class Entitypublic void onUpdate()
public boolean combineItems(EntityItem p_70289_1_)
public void setAgeToCreativeDespawnTime()
public boolean handleWaterMovement()
handleWaterMovement in class Entityprotected void dealFireDamage(int p_70081_1_)
dealFireDamage in class Entitypublic boolean attackEntityFrom(DamageSource p_70097_1_, float p_70097_2_)
attackEntityFrom in class Entitypublic void writeEntityToNBT(NBTTagCompound p_70014_1_)
writeEntityToNBT in class Entitypublic void readEntityFromNBT(NBTTagCompound p_70037_1_)
readEntityFromNBT in class Entitypublic void onCollideWithPlayer(EntityPlayer p_70100_1_)
onCollideWithPlayer in class Entitypublic java.lang.String getCommandSenderName()
getCommandSenderName in class Entitypublic boolean canAttackWithItem()
canAttackWithItem in class Entitypublic void travelToDimension(int p_71027_1_)
travelToDimension in class Entitypublic ItemStack getEntityItem()
public void setEntityItemStack(ItemStack p_92058_1_)
public java.lang.String func_145798_i()
public void func_145797_a(java.lang.String p_145797_1_)
public java.lang.String func_145800_j()
public void func_145799_b(java.lang.String p_145799_1_)