YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
net.minecraft.entity.item.EntityItem Class Reference
Inheritance diagram for net.minecraft.entity.item.EntityItem:
net.minecraft.entity.Entity

Public Member Functions

 EntityItem (World par1World, double par2, double par4, double par6)
 
 EntityItem (World par1World, double par2, double par4, double par6, ItemStack par8ItemStack)
 
 EntityItem (World par1World)
 
void onUpdate ()
 
boolean combineItems (EntityItem par1EntityItem)
 
void setAgeToCreativeDespawnTime ()
 
boolean handleWaterMovement ()
 
boolean attackEntityFrom (DamageSource par1DamageSource, int par2)
 
void writeEntityToNBT (NBTTagCompound par1NBTTagCompound)
 
void readEntityFromNBT (NBTTagCompound par1NBTTagCompound)
 
void onCollideWithPlayer (EntityPlayer par1EntityPlayer)
 
String getEntityName ()
 
boolean canAttackWithItem ()
 
void travelToDimension (int par1)
 
ItemStack getEntityItem ()
 
void setEntityItemStack (ItemStack par1ItemStack)
 
- Public Member Functions inherited from net.minecraft.entity.Entity
 Entity (World par1World)
 
DataWatcher getDataWatcher ()
 
boolean equals (Object par1Obj)
 
int hashCode ()
 
void setDead ()
 
void setPosition (double par1, double par3, double par5)
 
void setAngles (float par1, float par2)
 
void onUpdate ()
 
void onEntityUpdate ()
 
int getMaxInPortalTime ()
 
void setFire (int par1)
 
void extinguish ()
 
boolean isOffsetPositionInLiquid (double par1, double par3, double par5)
 
void moveEntity (double par1, double par3, double par5)
 
void playSound (String par1Str, float par2, float par3)
 
AxisAlignedBB getBoundingBox ()
 
final boolean isImmuneToFire ()
 
boolean isWet ()
 
boolean isInWater ()
 
boolean handleWaterMovement ()
 
boolean isInsideOfMaterial (Material par1Material)
 
float getEyeHeight ()
 
boolean handleLavaMovement ()
 
void moveFlying (float par1, float par2, float par3)
 
int getBrightnessForRender (float par1)
 
float getBrightness (float par1)
 
void setWorld (World par1World)
 
void setPositionAndRotation (double par1, double par3, double par5, float par7, float par8)
 
void setLocationAndAngles (double par1, double par3, double par5, float par7, float par8)
 
float getDistanceToEntity (Entity par1Entity)
 
double getDistanceSq (double par1, double par3, double par5)
 
double getDistance (double par1, double par3, double par5)
 
double getDistanceSqToEntity (Entity par1Entity)
 
void onCollideWithPlayer (EntityPlayer par1EntityPlayer)
 
void applyEntityCollision (Entity par1Entity)
 
void addVelocity (double par1, double par3, double par5)
 
boolean attackEntityFrom (DamageSource par1DamageSource, int par2)
 
boolean canBeCollidedWith ()
 
boolean canBePushed ()
 
void addToPlayerScore (Entity par1Entity, int par2)
 
boolean addNotRiddenEntityID (NBTTagCompound par1NBTTagCompound)
 
boolean isInRangeToRenderVec3D (Vec3 par1Vec3)
 
boolean isInRangeToRenderDist (double par1)
 
String getTexture ()
 
boolean addEntityID (NBTTagCompound par1NBTTagCompound)
 
void writeToNBT (NBTTagCompound par1NBTTagCompound)
 
void readFromNBT (NBTTagCompound par1NBTTagCompound)
 
float getShadowSize ()
 
EntityItem dropItem (int par1, int par2)
 
EntityItem dropItemWithOffset (int par1, int par2, float par3)
 
EntityItem entityDropItem (ItemStack par1ItemStack, float par2)
 
boolean isEntityAlive ()
 
boolean isEntityInsideOpaqueBlock ()
 
boolean interact (EntityPlayer par1EntityPlayer)
 
AxisAlignedBB getCollisionBox (Entity par1Entity)
 
void updateRidden ()
 
void updateRiderPosition ()
 
double getYOffset ()
 
double getMountedYOffset ()
 
void mountEntity (Entity par1Entity)
 
void unmountEntity (Entity par1Entity)
 
void setPositionAndRotation2 (double par1, double par3, double par5, float par7, float par8, int par9)
 
float getCollisionBorderSize ()
 
Vec3 getLookVec ()
 
void setInPortal ()
 
int getPortalCooldown ()
 
void setVelocity (double par1, double par3, double par5)
 
void handleHealthUpdate (byte par1)
 
void performHurtAnimation ()
 
void updateCloak ()
 
ItemStack[] getLastActiveItems ()
 
void setCurrentItemOrArmor (int par1, ItemStack par2ItemStack)
 
boolean isBurning ()
 
boolean isRiding ()
 
boolean isSneaking ()
 
void setSneaking (boolean par1)
 
boolean isSprinting ()
 
void setSprinting (boolean par1)
 
boolean isInvisible ()
 
boolean func_98034_c (EntityPlayer par1EntityPlayer)
 
void setInvisible (boolean par1)
 
boolean isEating ()
 
void setEating (boolean par1)
 
int getAir ()
 
void setAir (int par1)
 
void onStruckByLightning (EntityLightningBolt par1EntityLightningBolt)
 
void onKillEntity (EntityLiving par1EntityLiving)
 
void setInWeb ()
 
String getEntityName ()
 
Entity[] getParts ()
 
boolean isEntityEqual (Entity par1Entity)
 
float getRotationYawHead ()
 
void setRotationYawHead (float par1)
 
boolean canAttackWithItem ()
 
boolean func_85031_j (Entity par1Entity)
 
String toString ()
 
boolean isEntityInvulnerable ()
 
void func_82149_j (Entity par1Entity)
 
void copyDataFrom (Entity par1Entity, boolean par2)
 
void travelToDimension (int par1)
 
float func_82146_a (Explosion par1Explosion, World par2World, int par3, int par4, int par5, Block par6Block)
 
boolean func_96091_a (Explosion par1Explosion, World par2World, int par3, int par4, int par5, int par6, float par7)
 
int func_82143_as ()
 
int getTeleportDirection ()
 
boolean doesEntityNotTriggerPressurePlate ()
 
void func_85029_a (CrashReportCategory par1CrashReportCategory)
 
boolean canRenderOnFire ()
 
boolean func_96092_aw ()
 
String getTranslatedEntityName ()
 
NBTTagCompound getEntityData ()
 
boolean shouldRiderSit ()
 
ItemStack getPickedResult (MovingObjectPosition target)
 
UUID getPersistentID ()
 
final void resetEntityId ()
 
boolean shouldRenderInPass (int pass)
 
boolean isCreatureType (EnumCreatureType type, boolean forSpawnCount)
 
String registerExtendedProperties (String identifier, IExtendedEntityProperties properties)
 
IExtendedEntityProperties getExtendedProperties (String identifier)
 

Public Attributes

int age
 
int delayBeforeCanPickup
 
float hoverStart
 
int lifespan = 6000
 
- Public Attributes inherited from net.minecraft.entity.Entity
int entityId
 
double renderDistanceWeight
 
boolean preventEntitySpawning
 
Entity riddenByEntity
 
Entity ridingEntity
 
boolean field_98038_p
 
World worldObj
 
double prevPosX
 
double prevPosY
 
double prevPosZ
 
double posX
 
double posY
 
double posZ
 
double motionX
 
double motionY
 
double motionZ
 
float rotationYaw
 
float rotationPitch
 
float prevRotationYaw
 
float prevRotationPitch
 
final AxisAlignedBB boundingBox
 
boolean onGround
 
boolean isCollidedHorizontally
 
boolean isCollidedVertically
 
boolean isCollided
 
boolean velocityChanged
 
boolean field_70135_K
 
boolean isDead
 
float yOffset
 
float width
 
float height
 
float prevDistanceWalkedModified
 
float distanceWalkedModified
 
float distanceWalkedOnStepModified
 
float fallDistance
 
double lastTickPosX
 
double lastTickPosY
 
double lastTickPosZ
 
float ySize
 
float stepHeight
 
boolean noClip
 
float entityCollisionReduction
 
int ticksExisted
 
int fireResistance
 
int hurtResistantTime
 
String skinUrl
 
String cloakUrl
 
boolean addedToChunk
 
int chunkCoordX
 
int chunkCoordY
 
int chunkCoordZ
 
int serverPosX
 
int serverPosY
 
int serverPosZ
 
boolean ignoreFrustumCheck
 
boolean isAirBorne
 
int timeUntilPortal
 
int dimension
 
EnumEntitySize myEntitySize
 
boolean captureDrops = false
 
ArrayList< EntityItemcapturedDrops = new ArrayList<EntityItem>()
 

Protected Member Functions

boolean canTriggerWalking ()
 
void entityInit ()
 
void dealFireDamage (int par1)
 
- Protected Member Functions inherited from net.minecraft.entity.Entity
void preparePlayerToSpawn ()
 
void setSize (float par1, float par2)
 
void setRotation (float par1, float par2)
 
void setOnFireFromLava ()
 
void kill ()
 
void doBlockCollisions ()
 
void playStepSound (int par1, int par2, int par3, int par4)
 
boolean canTriggerWalking ()
 
void updateFallState (double par1, boolean par3)
 
void dealFireDamage (int par1)
 
void fall (float par1)
 
void setBeenAttacked ()
 
final String getEntityString ()
 
NBTTagList newDoubleNBTList (double...par1ArrayOfDouble)
 
NBTTagList newFloatNBTList (float...par1ArrayOfFloat)
 
boolean getFlag (int par1)
 
void setFlag (int par1, boolean par2)
 
boolean pushOutOfBlocks (double par1, double par3, double par5)
 

Additional Inherited Members

- Protected Attributes inherited from net.minecraft.entity.Entity
boolean isInWeb
 
Random rand
 
boolean inWater
 
boolean isImmuneToFire
 
DataWatcher dataWatcher
 
boolean inPortal
 
int timeInPortal
 
int teleportDirection
 

Constructor & Destructor Documentation

net.minecraft.entity.item.EntityItem.EntityItem ( World  par1World,
double  par2,
double  par4,
double  par6 
)
net.minecraft.entity.item.EntityItem.EntityItem ( World  par1World,
double  par2,
double  par4,
double  par6,
ItemStack  par8ItemStack 
)
net.minecraft.entity.item.EntityItem.EntityItem ( World  par1World)

Member Function Documentation

boolean net.minecraft.entity.item.EntityItem.attackEntityFrom ( DamageSource  par1DamageSource,
int  par2 
)

Called when the entity is attacked.

boolean net.minecraft.entity.item.EntityItem.canAttackWithItem ( )

If returns false, the item will not inflict any damage against entities.

boolean net.minecraft.entity.item.EntityItem.canTriggerWalking ( )
protected

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 net.minecraft.entity.item.EntityItem.combineItems ( EntityItem  par1EntityItem)

Tries to merge this item with the item passed as the parameter. Returns true if successful. Either this item or the other item will be removed from the world.

void net.minecraft.entity.item.EntityItem.dealFireDamage ( int  par1)
protected

Will deal the specified amount of damage to the entity if the entity isn't immune to fire damage. Args: amountDamage

void net.minecraft.entity.item.EntityItem.entityInit ( )
protectedvirtual
ItemStack net.minecraft.entity.item.EntityItem.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)

String net.minecraft.entity.item.EntityItem.getEntityName ( )

Gets the username of the entity.

boolean net.minecraft.entity.item.EntityItem.handleWaterMovement ( )

Returns if this entity is in water and will end up adding the waters velocity to the entity

void net.minecraft.entity.item.EntityItem.onCollideWithPlayer ( EntityPlayer  par1EntityPlayer)

Called by a player entity when they collide with an entity

void net.minecraft.entity.item.EntityItem.onUpdate ( )

Called to update the entity's position/logic.

void net.minecraft.entity.item.EntityItem.readEntityFromNBT ( NBTTagCompound  par1NBTTagCompound)
virtual

(abstract) Protected helper method to read subclass entity data from NBT.

Implements net.minecraft.entity.Entity.

void net.minecraft.entity.item.EntityItem.setAgeToCreativeDespawnTime ( )

sets the age of the item so that it'll despawn one minute after it has been dropped (instead of five). Used when items are dropped from players in creative mode

void net.minecraft.entity.item.EntityItem.setEntityItemStack ( ItemStack  par1ItemStack)

Sets the ItemStack for this entity

void net.minecraft.entity.item.EntityItem.travelToDimension ( int  par1)

Teleports the entity to another dimension. Params: Dimension number to teleport to

void net.minecraft.entity.item.EntityItem.writeEntityToNBT ( NBTTagCompound  par1NBTTagCompound)
virtual

(abstract) Protected helper method to write subclass entity data to NBT.

Implements net.minecraft.entity.Entity.

Member Data Documentation

int net.minecraft.entity.item.EntityItem.age

The age of this EntityItem (used to animate it up and down as well as expire it)

int net.minecraft.entity.item.EntityItem.delayBeforeCanPickup
float net.minecraft.entity.item.EntityItem.hoverStart

The EntityItem's random initial float height.

int net.minecraft.entity.item.EntityItem.lifespan = 6000

The maximum age of this EntityItem. The item is expired once this is reached.


The documentation for this class was generated from the following file: