YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
net.minecraft.entity.Entity Class Referenceabstract
Inheritance diagram for net.minecraft.entity.Entity:
net.minecraft.client.particle.EntityFX net.minecraft.entity.boss.EntityDragonPart net.minecraft.entity.effect.EntityWeatherEffect net.minecraft.entity.EntityHanging net.minecraft.entity.EntityLiving net.minecraft.entity.item.EntityBoat net.minecraft.entity.item.EntityEnderCrystal net.minecraft.entity.item.EntityEnderEye net.minecraft.entity.item.EntityFallingSand net.minecraft.entity.item.EntityFireworkRocket net.minecraft.entity.item.EntityItem net.minecraft.entity.item.EntityMinecart net.minecraft.entity.item.EntityTNTPrimed net.minecraft.entity.item.EntityXPOrb net.minecraft.entity.projectile.EntityArrow net.minecraft.entity.projectile.EntityFireball net.minecraft.entity.projectile.EntityFishHook net.minecraft.entity.projectile.EntityThrowable

Public Member Functions

 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 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

abstract void entityInit ()
 
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 ()
 
abstract void readEntityFromNBT (NBTTagCompound nbttagcompound)
 
abstract void writeEntityToNBT (NBTTagCompound nbttagcompound)
 
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)
 

Protected Attributes

boolean isInWeb
 
Random rand
 
boolean inWater
 
boolean isImmuneToFire
 
DataWatcher dataWatcher
 
boolean inPortal
 
int timeInPortal
 
int teleportDirection
 

Constructor & Destructor Documentation

net.minecraft.entity.Entity.Entity ( World  par1World)

Member Function Documentation

boolean net.minecraft.entity.Entity.addEntityID ( NBTTagCompound  par1NBTTagCompound)

adds the ID of this entity to the NBT given

boolean net.minecraft.entity.Entity.addNotRiddenEntityID ( NBTTagCompound  par1NBTTagCompound)
void net.minecraft.entity.Entity.addToPlayerScore ( Entity  par1Entity,
int  par2 
)

Adds a value to the player score. Currently not actually used and the entity passed in does nothing. Args: entity, scoreToAdd

void net.minecraft.entity.Entity.addVelocity ( double  par1,
double  par3,
double  par5 
)

Adds to the current velocity of the entity. Args: x, y, z

void net.minecraft.entity.Entity.applyEntityCollision ( Entity  par1Entity)

Applies a velocity to each of the entities pushing them away from each other. Args: entity

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

Called when the entity is attacked.

boolean net.minecraft.entity.Entity.canAttackWithItem ( )

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

boolean net.minecraft.entity.Entity.canBeCollidedWith ( )

Returns true if other Entities should be prevented from moving through this Entity.

boolean net.minecraft.entity.Entity.canBePushed ( )

Returns true if this entity should push and be pushed by other entities when colliding.

boolean net.minecraft.entity.Entity.canRenderOnFire ( )

Return whether this entity should be rendered as on fire.

boolean net.minecraft.entity.Entity.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

void net.minecraft.entity.Entity.copyDataFrom ( Entity  par1Entity,
boolean  par2 
)

Copies important data from another entity to this entity. Used when teleporting entities between worlds, as this actually deletes the teleporting entity and re-creates it on the other side. Params: Entity to copy from, unused (always true)

void net.minecraft.entity.Entity.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.Entity.doBlockCollisions ( )
protected

Checks for block collisions, and calls the associated onBlockCollided method for the collided block.

boolean net.minecraft.entity.Entity.doesEntityNotTriggerPressurePlate ( )

Return whether this entity should NOT trigger a pressure plate or a tripwire.

EntityItem net.minecraft.entity.Entity.dropItem ( int  par1,
int  par2 
)

Drops an item stack at the entity's position. Args: itemID, count

EntityItem net.minecraft.entity.Entity.dropItemWithOffset ( int  par1,
int  par2,
float  par3 
)

Drops an item stack with a specified y offset. Args: itemID, count, yOffset

EntityItem net.minecraft.entity.Entity.entityDropItem ( ItemStack  par1ItemStack,
float  par2 
)

Drops an item at the position of the entity.

abstract void net.minecraft.entity.Entity.entityInit ( )
protectedpure virtual

Implemented in net.minecraft.entity.EntityLiving, net.minecraft.entity.passive.EntityVillager, net.minecraft.entity.player.EntityPlayer, net.minecraft.client.particle.EntityFX, net.minecraft.entity.projectile.EntityWitherSkull, net.minecraft.entity.effect.EntityLightningBolt, net.minecraft.entity.projectile.EntityArrow, net.minecraft.entity.projectile.EntityFishHook, net.minecraft.entity.item.EntityMinecart, net.minecraft.entity.passive.EntityWolf, net.minecraft.entity.passive.EntitySheep, net.minecraft.entity.boss.EntityDragon, net.minecraft.entity.item.EntityFallingSand, net.minecraft.entity.monster.EntityCreeper, net.minecraft.entity.item.EntityItem, net.minecraft.entity.passive.EntityPig, net.minecraft.entity.monster.EntityZombie, net.minecraft.entity.item.EntityXPOrb, net.minecraft.entity.EntityAgeable, net.minecraft.entity.boss.EntityWither, net.minecraft.entity.monster.EntityGhast, net.minecraft.entity.monster.EntitySkeleton, net.minecraft.entity.monster.EntityIronGolem, net.minecraft.entity.passive.EntityOcelot, net.minecraft.entity.item.EntityBoat, net.minecraft.entity.monster.EntityWitch, net.minecraft.entity.item.EntityEnderCrystal, net.minecraft.entity.monster.EntityEnderman, net.minecraft.entity.projectile.EntityThrowable, net.minecraft.entity.item.EntityTNTPrimed, net.minecraft.entity.EntityHanging, net.minecraft.entity.projectile.EntityFireball, net.minecraft.entity.item.EntityMinecartFurnace, net.minecraft.entity.monster.EntityBlaze, net.minecraft.entity.monster.EntitySlime, net.minecraft.entity.item.EntityEnderEye, net.minecraft.entity.item.EntityItemFrame, net.minecraft.entity.passive.EntityBat, net.minecraft.entity.item.EntityFireworkRocket, net.minecraft.entity.boss.EntityDragonPart, net.minecraft.entity.monster.EntitySpider, and net.minecraft.entity.passive.EntityTameable.

boolean net.minecraft.entity.Entity.equals ( Object  par1Obj)
void net.minecraft.entity.Entity.extinguish ( )

Removes fire from entity.

void net.minecraft.entity.Entity.fall ( float  par1)
protected

Called when the mob is falling. Calculates and applies fall damage.

int net.minecraft.entity.Entity.func_82143_as ( )
float net.minecraft.entity.Entity.func_82146_a ( Explosion  par1Explosion,
World  par2World,
int  par3,
int  par4,
int  par5,
Block  par6Block 
)
void net.minecraft.entity.Entity.func_82149_j ( Entity  par1Entity)
void net.minecraft.entity.Entity.func_85029_a ( CrashReportCategory  par1CrashReportCategory)
boolean net.minecraft.entity.Entity.func_85031_j ( Entity  par1Entity)
boolean net.minecraft.entity.Entity.func_96091_a ( Explosion  par1Explosion,
World  par2World,
int  par3,
int  par4,
int  par5,
int  par6,
float  par7 
)
boolean net.minecraft.entity.Entity.func_96092_aw ( )
boolean net.minecraft.entity.Entity.func_98034_c ( EntityPlayer  par1EntityPlayer)
int net.minecraft.entity.Entity.getAir ( )
AxisAlignedBB net.minecraft.entity.Entity.getBoundingBox ( )

returns the bounding box for this entity

float net.minecraft.entity.Entity.getBrightness ( float  par1)

Gets how bright this entity is.

int net.minecraft.entity.Entity.getBrightnessForRender ( float  par1)
float net.minecraft.entity.Entity.getCollisionBorderSize ( )
AxisAlignedBB net.minecraft.entity.Entity.getCollisionBox ( Entity  par1Entity)

Returns a boundingBox used to collide the entity with other entities and blocks. This enables the entity to be pushable on contact, like boats or minecarts.

DataWatcher net.minecraft.entity.Entity.getDataWatcher ( )
double net.minecraft.entity.Entity.getDistance ( double  par1,
double  par3,
double  par5 
)

Gets the distance to the position. Args: x, y, z

double net.minecraft.entity.Entity.getDistanceSq ( double  par1,
double  par3,
double  par5 
)

Gets the squared distance to the position. Args: x, y, z

double net.minecraft.entity.Entity.getDistanceSqToEntity ( Entity  par1Entity)

Returns the squared distance to the entity. Args: entity

float net.minecraft.entity.Entity.getDistanceToEntity ( Entity  par1Entity)

Returns the distance to the entity. Args: entity

NBTTagCompound net.minecraft.entity.Entity.getEntityData ( )

Returns a NBTTagCompound that can be used to store custom data for this entity. It will be written, and read from disc, so it persists over world saves.

Returns
A NBTTagCompound
String net.minecraft.entity.Entity.getEntityName ( )

Gets the username of the entity.

final String net.minecraft.entity.Entity.getEntityString ( )
protected

Returns the string that identifies this Entity's class

IExtendedEntityProperties net.minecraft.entity.Entity.getExtendedProperties ( String  identifier)

Gets the extended properties identified by the passed in key

Parameters
identifierThe key that identifies the extended properties.
Returns
The instance of IExtendedProperties that was found, or null.
float net.minecraft.entity.Entity.getEyeHeight ( )
boolean net.minecraft.entity.Entity.getFlag ( int  par1)
protected

Returns true if the flag is active for the entity. Known flags: 0) is burning; 1) is sneaking; 2) is riding something; 3) is sprinting; 4) is eating

ItemStack [] net.minecraft.entity.Entity.getLastActiveItems ( )
Vec3 net.minecraft.entity.Entity.getLookVec ( )

returns a (normalized) vector of where this entity is looking

int net.minecraft.entity.Entity.getMaxInPortalTime ( )

Return the amount of time this entity should stay in a portal before being transported.

double net.minecraft.entity.Entity.getMountedYOffset ( )

Returns the Y offset from the entity's position for any entity riding this one.

Entity [] net.minecraft.entity.Entity.getParts ( )

Return the Entity parts making up this Entity (currently only for dragons)

UUID net.minecraft.entity.Entity.getPersistentID ( )
ItemStack net.minecraft.entity.Entity.getPickedResult ( MovingObjectPosition  target)

Called when a user uses the creative pick block button on this entity.

Parameters
targetThe full target the player is looking at
Returns
A ItemStack to add to the player's inventory, Null if nothing should be added.
int net.minecraft.entity.Entity.getPortalCooldown ( )

Return the amount of cooldown before this entity can use a portal again.

float net.minecraft.entity.Entity.getRotationYawHead ( )
float net.minecraft.entity.Entity.getShadowSize ( )
int net.minecraft.entity.Entity.getTeleportDirection ( )
String net.minecraft.entity.Entity.getTexture ( )

Returns the texture's file path as a String.

String net.minecraft.entity.Entity.getTranslatedEntityName ( )

Returns the translated name of the entity.

double net.minecraft.entity.Entity.getYOffset ( )

Returns the Y Offset of this entity.

void net.minecraft.entity.Entity.handleHealthUpdate ( byte  par1)
boolean net.minecraft.entity.Entity.handleLavaMovement ( )

Whether or not the current entity is in lava

boolean net.minecraft.entity.Entity.handleWaterMovement ( )

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

int net.minecraft.entity.Entity.hashCode ( )
boolean net.minecraft.entity.Entity.interact ( EntityPlayer  par1EntityPlayer)

Called when a player interacts with a mob. e.g. gets milk from a cow, gets into the saddle on a pig.

boolean net.minecraft.entity.Entity.isBurning ( )

Returns true if the entity is on fire. Used by render to add the fire effect on rendering.

boolean net.minecraft.entity.Entity.isCreatureType ( EnumCreatureType  type,
boolean  forSpawnCount 
)

Returns true if the entity is of the EnumCreatureType} provided

Parameters
typeThe EnumCreatureType type this entity is evaluating
forSpawnCountIf this is being invoked to check spawn count caps.
Returns
If the creature is of the type provided
boolean net.minecraft.entity.Entity.isEating ( )
boolean net.minecraft.entity.Entity.isEntityAlive ( )

Checks whether target entity is alive.

boolean net.minecraft.entity.Entity.isEntityEqual ( Entity  par1Entity)

Returns true if Entity argument is equal to this Entity

boolean net.minecraft.entity.Entity.isEntityInsideOpaqueBlock ( )

Checks if this entity is inside of an opaque block

boolean net.minecraft.entity.Entity.isEntityInvulnerable ( )

Return whether this entity is invulnerable to damage.

final boolean net.minecraft.entity.Entity.isImmuneToFire ( )
boolean net.minecraft.entity.Entity.isInRangeToRenderDist ( double  par1)

Checks if the entity is in range to render by using the past in distance and comparing it to its average edge length * 64 * renderDistanceWeight Args: distance

boolean net.minecraft.entity.Entity.isInRangeToRenderVec3D ( Vec3  par1Vec3)

Checks using a Vec3d to determine if this entity is within range of that vector to be rendered. Args: vec3D

boolean net.minecraft.entity.Entity.isInsideOfMaterial ( Material  par1Material)

Checks if the current block the entity is within of the specified material type

boolean net.minecraft.entity.Entity.isInvisible ( )
boolean net.minecraft.entity.Entity.isInWater ( )

Checks if this entity is inside water (if inWater field is true as a result of handleWaterMovement() returning true)

boolean net.minecraft.entity.Entity.isOffsetPositionInLiquid ( double  par1,
double  par3,
double  par5 
)

Checks if the offset position from the entity's current position is inside of liquid. Args: x, y, z

boolean net.minecraft.entity.Entity.isRiding ( )

Returns true if the entity is riding another entity, used by render to rotate the legs to be in 'sit' position for players.

boolean net.minecraft.entity.Entity.isSneaking ( )

Returns if this entity is sneaking.

boolean net.minecraft.entity.Entity.isSprinting ( )

Get if the Entity is sprinting.

boolean net.minecraft.entity.Entity.isWet ( )

Checks if this entity is either in water or on an open air block in rain (used in wolves).

void net.minecraft.entity.Entity.kill ( )
protected

sets the dead flag. Used when you fall off the bottom of the world.

void net.minecraft.entity.Entity.mountEntity ( Entity  par1Entity)

Called when a player mounts an entity. e.g. mounts a pig, mounts a boat.

void net.minecraft.entity.Entity.moveEntity ( double  par1,
double  par3,
double  par5 
)

Tries to moves the entity by the passed in displacement. Args: x, y, z

void net.minecraft.entity.Entity.moveFlying ( float  par1,
float  par2,
float  par3 
)

Used in both water and by flying objects

NBTTagList net.minecraft.entity.Entity.newDoubleNBTList ( double...  par1ArrayOfDouble)
protected

creates a NBT list from the array of doubles passed to this function

NBTTagList net.minecraft.entity.Entity.newFloatNBTList ( float...  par1ArrayOfFloat)
protected

Returns a new NBTTagList filled with the specified floats

void net.minecraft.entity.Entity.onCollideWithPlayer ( EntityPlayer  par1EntityPlayer)

Called by a player entity when they collide with an entity

void net.minecraft.entity.Entity.onEntityUpdate ( )

Gets called every tick from main Entity class

void net.minecraft.entity.Entity.onKillEntity ( EntityLiving  par1EntityLiving)

This method gets called when the entity kills another one.

void net.minecraft.entity.Entity.onStruckByLightning ( EntityLightningBolt  par1EntityLightningBolt)

Called when a lightning bolt hits the entity.

void net.minecraft.entity.Entity.onUpdate ( )

Called to update the entity's position/logic.

void net.minecraft.entity.Entity.performHurtAnimation ( )

Setups the entity to do the hurt animation. Only used by packets in multiplayer.

void net.minecraft.entity.Entity.playSound ( String  par1Str,
float  par2,
float  par3 
)
void net.minecraft.entity.Entity.playStepSound ( int  par1,
int  par2,
int  par3,
int  par4 
)
protected

Plays step sound at given x, y, z for the entity

void net.minecraft.entity.Entity.preparePlayerToSpawn ( )
protected

Keeps moving the entity up so it isn't colliding with blocks and other requirements for this entity to be spawned (only actually used on players though its also on Entity)

boolean net.minecraft.entity.Entity.pushOutOfBlocks ( double  par1,
double  par3,
double  par5 
)
protected

Adds velocity to push the entity out of blocks at the specified x, y, z position Args: x, y, z

abstract void net.minecraft.entity.Entity.readEntityFromNBT ( NBTTagCompound  nbttagcompound)
protectedpure virtual

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

Implemented in net.minecraft.entity.EntityLiving, net.minecraft.entity.player.EntityPlayer, net.minecraft.entity.item.EntityMinecart, net.minecraft.entity.item.EntityBoat, net.minecraft.entity.projectile.EntityArrow, net.minecraft.entity.projectile.EntityFishHook, net.minecraft.entity.monster.EntitySkeleton, net.minecraft.entity.monster.EntityZombie, net.minecraft.entity.item.EntityItem, net.minecraft.entity.projectile.EntityThrowable, net.minecraft.entity.EntityHanging, net.minecraft.entity.monster.EntityGhast, net.minecraft.entity.item.EntityMinecartContainer, net.minecraft.entity.item.EntityFallingSand, net.minecraft.entity.projectile.EntityFireball, net.minecraft.entity.passive.EntityVillager, net.minecraft.entity.passive.EntityBat, net.minecraft.entity.item.EntityXPOrb, net.minecraft.entity.passive.EntityAnimal, net.minecraft.entity.item.EntityEnderEye, net.minecraft.client.particle.EntityFX, net.minecraft.entity.item.EntityMinecartHopper, net.minecraft.entity.player.EntityPlayerMP, net.minecraft.entity.item.EntityFireworkRocket, net.minecraft.entity.passive.EntitySheep, net.minecraft.entity.item.EntityMinecartTNT, net.minecraft.entity.monster.EntityIronGolem, net.minecraft.entity.item.EntityMinecartFurnace, net.minecraft.entity.projectile.EntityPotion, net.minecraft.entity.passive.EntityOcelot, net.minecraft.entity.passive.EntityWolf, net.minecraft.entity.effect.EntityLightningBolt, net.minecraft.entity.item.EntityItemFrame, net.minecraft.entity.monster.EntityCreeper, net.minecraft.entity.item.EntityTNTPrimed, net.minecraft.entity.EntityAgeable, net.minecraft.entity.passive.EntityPig, net.minecraft.entity.boss.EntityWither, net.minecraft.entity.monster.EntityPigZombie, net.minecraft.entity.item.EntityPainting, net.minecraft.entity.item.EntityEnderCrystal, net.minecraft.entity.monster.EntitySlime, net.minecraft.entity.monster.EntityEnderman, net.minecraft.entity.projectile.EntityLargeFireball, net.minecraft.entity.passive.EntityTameable, net.minecraft.entity.ai.EntityMinecartMobSpawner, and net.minecraft.entity.boss.EntityDragonPart.

void net.minecraft.entity.Entity.readFromNBT ( NBTTagCompound  par1NBTTagCompound)

Reads the entity from NBT (calls an abstract helper method to read specialized data)

String net.minecraft.entity.Entity.registerExtendedProperties ( String  identifier,
IExtendedEntityProperties  properties 
)

Register the instance of IExtendedProperties into the entity's collection.

Parameters
identifierThe identifier which you can use to retrieve these properties for the entity.
propertiesThe instanceof IExtendedProperties to register
Returns
The identifier that was used to register the extended properties. Empty String indicates an error. If your requested key already existed, this will return a modified one that is unique.
final void net.minecraft.entity.Entity.resetEntityId ( )

Reset the entity ID to a new value. Not to be used from Mod code

void net.minecraft.entity.Entity.setAir ( int  par1)
void net.minecraft.entity.Entity.setAngles ( float  par1,
float  par2 
)

Adds par1*0.15 to the entity's yaw, and subtracts par2*0.15 from the pitch. Clamps pitch from -90 to 90. Both arguments in degrees.

void net.minecraft.entity.Entity.setBeenAttacked ( )
protected

Sets that this entity has been attacked.

void net.minecraft.entity.Entity.setCurrentItemOrArmor ( int  par1,
ItemStack  par2ItemStack 
)

Sets the held item, or an armor slot. Slot 0 is held item. Slot 1-4 is armor. Params: Item, slot

void net.minecraft.entity.Entity.setDead ( )

Will get destroyed next tick.

void net.minecraft.entity.Entity.setEating ( boolean  par1)
void net.minecraft.entity.Entity.setFire ( int  par1)

Sets entity to burn for x amount of seconds, cannot lower amount of existing fire.

void net.minecraft.entity.Entity.setFlag ( int  par1,
boolean  par2 
)
protected

Enable or disable a entity flag, see getEntityFlag to read the know flags.

void net.minecraft.entity.Entity.setInPortal ( )

Called by portal blocks when an entity is within it.

void net.minecraft.entity.Entity.setInvisible ( boolean  par1)
void net.minecraft.entity.Entity.setInWeb ( )

Sets the Entity inside a web block.

void net.minecraft.entity.Entity.setLocationAndAngles ( double  par1,
double  par3,
double  par5,
float  par7,
float  par8 
)

Sets the location and Yaw/Pitch of an entity in the world

void net.minecraft.entity.Entity.setOnFireFromLava ( )
protected

Called whenever the entity is walking inside of lava.

void net.minecraft.entity.Entity.setPosition ( double  par1,
double  par3,
double  par5 
)

Sets the x,y,z of the entity from the given parameters. Also seems to set up a bounding box.

void net.minecraft.entity.Entity.setPositionAndRotation ( double  par1,
double  par3,
double  par5,
float  par7,
float  par8 
)

Sets the entity's position and rotation. Args: posX, posY, posZ, yaw, pitch

void net.minecraft.entity.Entity.setPositionAndRotation2 ( double  par1,
double  par3,
double  par5,
float  par7,
float  par8,
int  par9 
)

Sets the position and rotation. Only difference from the other one is no bounding on the rotation. Args: posX, posY, posZ, yaw, pitch

void net.minecraft.entity.Entity.setRotation ( float  par1,
float  par2 
)
protected

Sets the rotation of the entity

void net.minecraft.entity.Entity.setRotationYawHead ( float  par1)

Sets the head's yaw rotation of the entity.

void net.minecraft.entity.Entity.setSize ( float  par1,
float  par2 
)
protected

Sets the width and height of the entity. Args: width, height

void net.minecraft.entity.Entity.setSneaking ( boolean  par1)

Sets the sneaking flag.

void net.minecraft.entity.Entity.setSprinting ( boolean  par1)

Set sprinting switch for Entity.

void net.minecraft.entity.Entity.setVelocity ( double  par1,
double  par3,
double  par5 
)

Sets the velocity to the args. Args: x, y, z

void net.minecraft.entity.Entity.setWorld ( World  par1World)

Sets the reference to the World object.

boolean net.minecraft.entity.Entity.shouldRenderInPass ( int  pass)
boolean net.minecraft.entity.Entity.shouldRiderSit ( )

Used in model rendering to determine if the entity riding this entity should be in the 'sitting' position.

Returns
false to prevent an entity that is mounted to this entity from displaying the 'sitting' animation.
String net.minecraft.entity.Entity.toString ( )
void net.minecraft.entity.Entity.travelToDimension ( int  par1)

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

void net.minecraft.entity.Entity.unmountEntity ( Entity  par1Entity)

Called when a player unounts an entity.

void net.minecraft.entity.Entity.updateCloak ( )
void net.minecraft.entity.Entity.updateFallState ( double  par1,
boolean  par3 
)
protected

Takes in the distance the entity has fallen this tick and whether its on the ground to update the fall distance and deal fall damage if landing on the ground. Args: distanceFallenThisTick, onGround

void net.minecraft.entity.Entity.updateRidden ( )

Handles updating while being ridden by an entity

void net.minecraft.entity.Entity.updateRiderPosition ( )
abstract void net.minecraft.entity.Entity.writeEntityToNBT ( NBTTagCompound  nbttagcompound)
protectedpure virtual

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

Implemented in net.minecraft.entity.EntityLiving, net.minecraft.entity.player.EntityPlayer, net.minecraft.entity.item.EntityMinecart, net.minecraft.entity.item.EntityBoat, net.minecraft.entity.projectile.EntityArrow, net.minecraft.entity.projectile.EntityFishHook, net.minecraft.entity.monster.EntitySkeleton, net.minecraft.entity.monster.EntityZombie, net.minecraft.entity.item.EntityItem, net.minecraft.entity.projectile.EntityThrowable, net.minecraft.entity.monster.EntityGhast, net.minecraft.entity.EntityHanging, net.minecraft.entity.passive.EntityBat, net.minecraft.entity.item.EntityMinecartContainer, net.minecraft.entity.projectile.EntityFireball, net.minecraft.entity.item.EntityFallingSand, net.minecraft.entity.passive.EntityVillager, net.minecraft.entity.item.EntityXPOrb, net.minecraft.entity.passive.EntityAnimal, net.minecraft.entity.player.EntityPlayerMP, net.minecraft.entity.item.EntityEnderEye, net.minecraft.client.particle.EntityFX, net.minecraft.entity.item.EntityMinecartTNT, net.minecraft.entity.item.EntityMinecartHopper, net.minecraft.entity.projectile.EntityPotion, net.minecraft.entity.passive.EntitySheep, net.minecraft.entity.item.EntityFireworkRocket, net.minecraft.entity.monster.EntityIronGolem, net.minecraft.entity.item.EntityMinecartFurnace, net.minecraft.entity.passive.EntityOcelot, net.minecraft.entity.effect.EntityLightningBolt, net.minecraft.entity.passive.EntityWolf, net.minecraft.entity.item.EntityTNTPrimed, net.minecraft.entity.item.EntityItemFrame, net.minecraft.entity.monster.EntityCreeper, net.minecraft.entity.EntityAgeable, net.minecraft.entity.passive.EntityPig, net.minecraft.entity.boss.EntityWither, net.minecraft.entity.monster.EntityPigZombie, net.minecraft.entity.item.EntityEnderCrystal, net.minecraft.entity.item.EntityPainting, net.minecraft.entity.monster.EntitySlime, net.minecraft.entity.monster.EntityEnderman, net.minecraft.entity.projectile.EntityLargeFireball, net.minecraft.entity.ai.EntityMinecartMobSpawner, net.minecraft.entity.boss.EntityDragonPart, and net.minecraft.entity.passive.EntityTameable.

void net.minecraft.entity.Entity.writeToNBT ( NBTTagCompound  par1NBTTagCompound)

Save the entity to NBT (calls an abstract helper method to write extra data)

Member Data Documentation

boolean net.minecraft.entity.Entity.addedToChunk

Has this entity been added to the chunk its within

final AxisAlignedBB net.minecraft.entity.Entity.boundingBox

Axis aligned bounding box.

ArrayList<EntityItem> net.minecraft.entity.Entity.capturedDrops = new ArrayList<EntityItem>()
boolean net.minecraft.entity.Entity.captureDrops = false
int net.minecraft.entity.Entity.chunkCoordX
int net.minecraft.entity.Entity.chunkCoordY
int net.minecraft.entity.Entity.chunkCoordZ
String net.minecraft.entity.Entity.cloakUrl

downloadable location of player's cloak

DataWatcher net.minecraft.entity.Entity.dataWatcher
protected
int net.minecraft.entity.Entity.dimension

Which dimension the player is in (-1 = the Nether, 0 = normal world)

float net.minecraft.entity.Entity.distanceWalkedModified

The distance walked multiplied by 0.6

float net.minecraft.entity.Entity.distanceWalkedOnStepModified
float net.minecraft.entity.Entity.entityCollisionReduction

Reduces the velocity applied by entity collisions by the specified percent.

int net.minecraft.entity.Entity.entityId
float net.minecraft.entity.Entity.fallDistance
boolean net.minecraft.entity.Entity.field_70135_K
boolean net.minecraft.entity.Entity.field_98038_p
int net.minecraft.entity.Entity.fireResistance

The amount of ticks you have to stand inside of fire before be set on fire

float net.minecraft.entity.Entity.height

How high this entity is considered to be

int net.minecraft.entity.Entity.hurtResistantTime

Remaining time an entity will be "immune" to further damage after being hurt.

boolean net.minecraft.entity.Entity.ignoreFrustumCheck

Render entity even if it is outside the camera frustum. Only true in EntityFish for now. Used in RenderGlobal: render if ignoreFrustumCheck or in frustum.

boolean net.minecraft.entity.Entity.inPortal
protected

Whether the entity is inside a Portal

boolean net.minecraft.entity.Entity.inWater
protected

Whether this entity is currently inside of water (if it handles water movement that is)

boolean net.minecraft.entity.Entity.isAirBorne
boolean net.minecraft.entity.Entity.isCollided

True if after a move this entity has collided with something either vertically or horizontally

boolean net.minecraft.entity.Entity.isCollidedHorizontally

True if after a move this entity has collided with something on X- or Z-axis

boolean net.minecraft.entity.Entity.isCollidedVertically

True if after a move this entity has collided with something on Y-axis

boolean net.minecraft.entity.Entity.isDead

Gets set by setDead, so this must be the flag whether an Entity is dead (inactive may be better term)

boolean net.minecraft.entity.Entity.isImmuneToFire
protected
boolean net.minecraft.entity.Entity.isInWeb
protected
double net.minecraft.entity.Entity.lastTickPosX

The entity's X coordinate at the previous tick, used to calculate position during rendering routines

double net.minecraft.entity.Entity.lastTickPosY

The entity's Y coordinate at the previous tick, used to calculate position during rendering routines

double net.minecraft.entity.Entity.lastTickPosZ

The entity's Z coordinate at the previous tick, used to calculate position during rendering routines

double net.minecraft.entity.Entity.motionX

Entity motion X

double net.minecraft.entity.Entity.motionY

Entity motion Y

double net.minecraft.entity.Entity.motionZ

Entity motion Z

EnumEntitySize net.minecraft.entity.Entity.myEntitySize
boolean net.minecraft.entity.Entity.noClip

Whether this entity won't clip with collision or not (make note it won't disable gravity)

boolean net.minecraft.entity.Entity.onGround
double net.minecraft.entity.Entity.posX

Entity position X

double net.minecraft.entity.Entity.posY

Entity position Y

double net.minecraft.entity.Entity.posZ

Entity position Z

float net.minecraft.entity.Entity.prevDistanceWalkedModified

The previous ticks distance walked multiplied by 0.6

boolean net.minecraft.entity.Entity.preventEntitySpawning

Blocks entities from spawning when they do their AABB check to make sure the spot is clear of entities that can prevent spawning.

double net.minecraft.entity.Entity.prevPosX
double net.minecraft.entity.Entity.prevPosY
double net.minecraft.entity.Entity.prevPosZ
float net.minecraft.entity.Entity.prevRotationPitch
float net.minecraft.entity.Entity.prevRotationYaw
Random net.minecraft.entity.Entity.rand
protected
double net.minecraft.entity.Entity.renderDistanceWeight
Entity net.minecraft.entity.Entity.riddenByEntity

The entity that is riding this entity

Entity net.minecraft.entity.Entity.ridingEntity

The entity we are currently riding

float net.minecraft.entity.Entity.rotationPitch

Entity rotation Pitch

float net.minecraft.entity.Entity.rotationYaw

Entity rotation Yaw

int net.minecraft.entity.Entity.serverPosX
int net.minecraft.entity.Entity.serverPosY
int net.minecraft.entity.Entity.serverPosZ
String net.minecraft.entity.Entity.skinUrl

downloadable location of player's skin

float net.minecraft.entity.Entity.stepHeight

How high this entity can step up when running into a block to try to get over it (currently make note the entity will always step up this amount and not just the amount needed)

int net.minecraft.entity.Entity.teleportDirection
protected
int net.minecraft.entity.Entity.ticksExisted

How many ticks has this entity had ran since being alive

int net.minecraft.entity.Entity.timeInPortal
protected
int net.minecraft.entity.Entity.timeUntilPortal
boolean net.minecraft.entity.Entity.velocityChanged
float net.minecraft.entity.Entity.width

How wide this entity is considered to be

World net.minecraft.entity.Entity.worldObj

Reference to the World object.

float net.minecraft.entity.Entity.yOffset
float net.minecraft.entity.Entity.ySize

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