YATS/Forge Documentation
|
Public Member Functions | |
EntityLiving (World par1World) | |
EntityLookHelper | getLookHelper () |
EntityMoveHelper | getMoveHelper () |
EntityJumpHelper | getJumpHelper () |
PathNavigate | getNavigator () |
EntitySenses | getEntitySenses () |
Random | getRNG () |
EntityLiving | getAITarget () |
EntityLiving | getLastAttackingEntity () |
void | setLastAttackingEntity (Entity par1Entity) |
int | getAge () |
float | getRotationYawHead () |
void | setRotationYawHead (float par1) |
float | getAIMoveSpeed () |
void | setAIMoveSpeed (float par1) |
boolean | attackEntityAsMob (Entity par1Entity) |
EntityLiving | getAttackTarget () |
void | setAttackTarget (EntityLiving par1EntityLiving) |
boolean | canAttackClass (Class par1Class) |
void | eatGrassBonus () |
boolean | isWithinHomeDistanceCurrentPosition () |
boolean | isWithinHomeDistance (int par1, int par2, int par3) |
void | setHomeArea (int par1, int par2, int par3, int par4) |
ChunkCoordinates | getHomePosition () |
float | getMaximumHomeDistance () |
void | detachHome () |
boolean | hasHome () |
void | setRevengeTarget (EntityLiving par1EntityLiving) |
boolean | canEntityBeSeen (Entity par1Entity) |
String | getTexture () |
boolean | canBeCollidedWith () |
boolean | canBePushed () |
float | getEyeHeight () |
int | getTalkInterval () |
void | playLivingSound () |
void | onEntityUpdate () |
void | spawnExplosionParticle () |
void | updateRidden () |
void | setPositionAndRotation2 (double par1, double par3, double par5, float par7, float par8, int par9) |
void | onUpdate () |
void | heal (int par1) |
abstract int | getMaxHealth () |
int | getHealth () |
void | setEntityHealth (int par1) |
boolean | attackEntityFrom (DamageSource par1DamageSource, int par2) |
void | performHurtAnimation () |
int | getTotalArmorValue () |
void | knockBack (Entity par1Entity, int par2, double par3, double par5) |
void | onDeath (DamageSource par1DamageSource) |
void | moveEntityWithHeading (float par1, float par2) |
boolean | isOnLadder () |
void | writeEntityToNBT (NBTTagCompound par1NBTTagCompound) |
void | readEntityFromNBT (NBTTagCompound par1NBTTagCompound) |
boolean | isEntityAlive () |
boolean | canBreatheUnderwater () |
void | setMoveForward (float par1) |
void | setJumping (boolean par1) |
void | onLivingUpdate () |
boolean | isBlocking () |
int | getVerticalFaceSpeed () |
void | faceEntity (Entity par1Entity, float par2, float par3) |
boolean | getCanSpawnHere () |
float | getSwingProgress (float par1) |
Vec3 | getPosition (float par1) |
Vec3 | getLookVec () |
Vec3 | getLook (float par1) |
float | getRenderSizeModifier () |
MovingObjectPosition | rayTrace (double par1, float par3) |
int | getMaxSpawnedInChunk () |
void | handleHealthUpdate (byte par1) |
boolean | isPlayerSleeping () |
Icon | getItemIcon (ItemStack par1ItemStack, int par2) |
void | clearActivePotions () |
Collection | getActivePotionEffects () |
boolean | isPotionActive (int par1) |
boolean | isPotionActive (Potion par1Potion) |
PotionEffect | getActivePotionEffect (Potion par1Potion) |
void | addPotionEffect (PotionEffect par1PotionEffect) |
boolean | isPotionApplicable (PotionEffect par1PotionEffect) |
boolean | isEntityUndead () |
void | removePotionEffectClient (int par1) |
void | removePotionEffect (int par1) |
float | getSpeedModifier () |
void | setPositionAndUpdate (double par1, double par3, double par5) |
boolean | isChild () |
EnumCreatureAttribute | getCreatureAttribute () |
void | renderBrokenItemStack (ItemStack par1ItemStack) |
int | func_82143_as () |
ItemStack | getHeldItem () |
ItemStack | getCurrentItemOrArmor (int par1) |
ItemStack | getCurrentArmor (int par1) |
void | setCurrentItemOrArmor (int par1, ItemStack par2ItemStack) |
ItemStack[] | getLastActiveItems () |
void | onItemPickup (Entity par1Entity, int par2) |
void | initCreature () |
void | swingItem () |
boolean | canBeSteered () |
final int | getArrowCountInEntity () |
final void | setArrowCountInEntity (int par1) |
EntityLiving | func_94060_bK () |
String | getEntityName () |
void | func_94058_c (String par1Str) |
String | func_94057_bL () |
boolean | func_94056_bM () |
void | func_94061_f (boolean par1) |
boolean | func_94062_bN () |
boolean | func_94059_bO () |
void | func_96120_a (int par1, float par2) |
boolean | canPickUpLoot () |
void | setCanPickUpLoot (boolean par1) |
boolean | func_104002_bU () |
void | curePotionEffects (ItemStack curativeItem) |
boolean | shouldRiderFaceForward (EntityPlayer player) |
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) |
Static Public Member Functions | |
static int | getArmorPosition (ItemStack par0ItemStack) |
static Item | getArmorItemForSlot (int par0, int par1) |
Static Public Attributes | |
static final float[] | pickUpLootProability = new float[] {0.0F, 0.1F, 0.15F, 0.45F} |
Protected Member Functions | |
int | func_96121_ay () |
void | updateFallState (double par1, boolean par3) |
void | entityInit () |
void | onDeathUpdate () |
int | decreaseAirSupply (int par1) |
int | getExperiencePoints (EntityPlayer par1EntityPlayer) |
boolean | isPlayer () |
float | getSoundPitch () |
void | damageArmor (int par1) |
int | applyArmorCalculations (DamageSource par1DamageSource, int par2) |
int | applyPotionDamageCalculations (DamageSource par1DamageSource, int par2) |
void | damageEntity (DamageSource par1DamageSource, int par2) |
float | getSoundVolume () |
String | getLivingSound () |
String | getHurtSound () |
String | getDeathSound () |
void | dropRareDrop (int par1) |
void | dropFewItems (boolean par1, int par2) |
int | getDropItemId () |
void | fall (float par1) |
void | func_85033_bc () |
void | collideWithEntity (Entity par1Entity) |
boolean | isAIEnabled () |
boolean | isClientWorld () |
boolean | isMovementBlocked () |
void | jump () |
boolean | canDespawn () |
void | despawnEntity () |
void | updateAITasks () |
void | updateAITick () |
void | updateEntityActionState () |
void | updateArmSwingProgress () |
void | kill () |
void | updatePotionEffects () |
void | onNewPotionEffect (PotionEffect par1PotionEffect) |
void | onChangedPotionEffect (PotionEffect par1PotionEffect) |
void | onFinishedPotionEffect (PotionEffect par1PotionEffect) |
void | dropEquipment (boolean par1, int par2) |
void | addRandomArmor () |
void | func_82162_bC () |
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) |
net.minecraft.entity.EntityLiving.EntityLiving | ( | World | par1World) |
void net.minecraft.entity.EntityLiving.addPotionEffect | ( | PotionEffect | par1PotionEffect) |
adds a PotionEffect to the entity
|
protected |
Makes entity wear random armor based on difficulty
|
protected |
Reduces damage, depending on armor
|
protected |
Reduces damage, depending on potions
boolean net.minecraft.entity.EntityLiving.attackEntityAsMob | ( | Entity | par1Entity) |
boolean net.minecraft.entity.EntityLiving.attackEntityFrom | ( | DamageSource | par1DamageSource, |
int | par2 | ||
) |
Called when the entity is attacked.
boolean net.minecraft.entity.EntityLiving.canAttackClass | ( | Class | par1Class) |
Returns true if this entity can attack entities of the specified class.
boolean net.minecraft.entity.EntityLiving.canBeCollidedWith | ( | ) |
Returns true if other Entities should be prevented from moving through this Entity.
boolean net.minecraft.entity.EntityLiving.canBePushed | ( | ) |
Returns true if this entity should push and be pushed by other entities when colliding.
boolean net.minecraft.entity.EntityLiving.canBeSteered | ( | ) |
returns true if all the conditions for steering the entity are met. For pigs, this is true if it is being ridden by a player and the player is holding a carrot-on-a-stick
boolean net.minecraft.entity.EntityLiving.canBreatheUnderwater | ( | ) |
|
protected |
Determines if an entity can be despawned, used on idle far away entities
boolean net.minecraft.entity.EntityLiving.canEntityBeSeen | ( | Entity | par1Entity) |
returns true if the entity provided in the argument can be seen. (Raytrace)
boolean net.minecraft.entity.EntityLiving.canPickUpLoot | ( | ) |
void net.minecraft.entity.EntityLiving.clearActivePotions | ( | ) |
|
protected |
void net.minecraft.entity.EntityLiving.curePotionEffects | ( | ItemStack | curativeItem) |
|
protected |
|
protected |
Deals damage to the entity. If its a EntityPlayer then will take damage from the armor first and then health second with the reduced value. Args: damageAmount
|
protected |
Decrements the entity's air supply when underwater
|
protected |
Makes the entity despawn if requirements are reached
void net.minecraft.entity.EntityLiving.detachHome | ( | ) |
|
protected |
Drop the equipment for this entity.
|
protected |
Drop 0-2 items of this living's type.
par1 | - Whether this entity has recently been hit by a player. |
par2 | - Level of Looting used to kill this mob. |
|
protected |
void net.minecraft.entity.EntityLiving.eatGrassBonus | ( | ) |
This function applies the benefits of growing back wool and faster growing up to the acting entity. (This function is used in the AIEatGrass)
|
protectedvirtual |
Implements net.minecraft.entity.Entity.
Reimplemented in net.minecraft.entity.passive.EntityVillager, net.minecraft.entity.player.EntityPlayer, net.minecraft.entity.passive.EntityWolf, net.minecraft.entity.passive.EntitySheep, net.minecraft.entity.monster.EntityCreeper, net.minecraft.entity.passive.EntityPig, net.minecraft.entity.monster.EntityZombie, net.minecraft.entity.monster.EntityGhast, net.minecraft.entity.monster.EntitySkeleton, net.minecraft.entity.monster.EntityIronGolem, net.minecraft.entity.passive.EntityOcelot, net.minecraft.entity.monster.EntityWitch, net.minecraft.entity.monster.EntityEnderman, net.minecraft.entity.monster.EntityBlaze, net.minecraft.entity.monster.EntitySlime, net.minecraft.entity.passive.EntityBat, net.minecraft.entity.monster.EntitySpider, and net.minecraft.entity.passive.EntityTameable.
void net.minecraft.entity.EntityLiving.faceEntity | ( | Entity | par1Entity, |
float | par2, | ||
float | par3 | ||
) |
Changes pitch and yaw so that the entity calling the function is facing the entity provided as an argument.
|
protected |
Called when the mob is falling. Calculates and applies fall damage.
boolean net.minecraft.entity.EntityLiving.func_104002_bU | ( | ) |
int net.minecraft.entity.EntityLiving.func_82143_as | ( | ) |
|
protected |
|
protected |
boolean net.minecraft.entity.EntityLiving.func_94056_bM | ( | ) |
String net.minecraft.entity.EntityLiving.func_94057_bL | ( | ) |
void net.minecraft.entity.EntityLiving.func_94058_c | ( | String | par1Str) |
boolean net.minecraft.entity.EntityLiving.func_94059_bO | ( | ) |
EntityLiving net.minecraft.entity.EntityLiving.func_94060_bK | ( | ) |
void net.minecraft.entity.EntityLiving.func_94061_f | ( | boolean | par1) |
boolean net.minecraft.entity.EntityLiving.func_94062_bN | ( | ) |
void net.minecraft.entity.EntityLiving.func_96120_a | ( | int | par1, |
float | par2 | ||
) |
|
protected |
PotionEffect net.minecraft.entity.EntityLiving.getActivePotionEffect | ( | Potion | par1Potion) |
returns the PotionEffect for the supplied Potion if it is active, null otherwise.
Collection net.minecraft.entity.EntityLiving.getActivePotionEffects | ( | ) |
int net.minecraft.entity.EntityLiving.getAge | ( | ) |
float net.minecraft.entity.EntityLiving.getAIMoveSpeed | ( | ) |
the movespeed used for the new AI system
EntityLiving net.minecraft.entity.EntityLiving.getAITarget | ( | ) |
|
static |
Params: Armor slot, Item tier
|
static |
final int net.minecraft.entity.EntityLiving.getArrowCountInEntity | ( | ) |
counts the amount of arrows stuck in the entity. getting hit by arrows increases this, used in rendering
EntityLiving net.minecraft.entity.EntityLiving.getAttackTarget | ( | ) |
Gets the active target the Task system uses for tracking
boolean net.minecraft.entity.EntityLiving.getCanSpawnHere | ( | ) |
Checks if the entity's current position is a valid location to spawn this entity.
EnumCreatureAttribute net.minecraft.entity.EntityLiving.getCreatureAttribute | ( | ) |
Get this Entity's EnumCreatureAttribute
ItemStack net.minecraft.entity.EntityLiving.getCurrentArmor | ( | int | par1) |
ItemStack net.minecraft.entity.EntityLiving.getCurrentItemOrArmor | ( | int | par1) |
0 = item, 1-n is armor
|
protected |
Returns the sound this mob makes on death.
|
protected |
Returns the item ID for the item the mob drops on death.
String net.minecraft.entity.EntityLiving.getEntityName | ( | ) |
Gets the username of the entity.
EntitySenses net.minecraft.entity.EntityLiving.getEntitySenses | ( | ) |
returns the EntitySenses Object for the EntityLiving
|
protected |
Get the experience points the entity currently has.
float net.minecraft.entity.EntityLiving.getEyeHeight | ( | ) |
int net.minecraft.entity.EntityLiving.getHealth | ( | ) |
ItemStack net.minecraft.entity.EntityLiving.getHeldItem | ( | ) |
Returns the item that this EntityLiving is holding, if any.
ChunkCoordinates net.minecraft.entity.EntityLiving.getHomePosition | ( | ) |
|
protected |
Returns the sound this mob makes when it is hurt.
Gets the Icon Index of the item currently held
EntityJumpHelper net.minecraft.entity.EntityLiving.getJumpHelper | ( | ) |
ItemStack [] net.minecraft.entity.EntityLiving.getLastActiveItems | ( | ) |
EntityLiving net.minecraft.entity.EntityLiving.getLastAttackingEntity | ( | ) |
|
protected |
Returns the sound this mob makes while it's alive.
Vec3 net.minecraft.entity.EntityLiving.getLook | ( | float | par1) |
interpolated look vector
EntityLookHelper net.minecraft.entity.EntityLiving.getLookHelper | ( | ) |
Vec3 net.minecraft.entity.EntityLiving.getLookVec | ( | ) |
returns a (normalized) vector of where this entity is looking
|
pure virtual |
Implemented in net.minecraft.entity.boss.EntityWither, net.minecraft.entity.passive.EntityVillager, net.minecraft.entity.player.EntityPlayer, net.minecraft.entity.passive.EntityOcelot, net.minecraft.entity.passive.EntityWolf, net.minecraft.entity.monster.EntityWitch, net.minecraft.entity.passive.EntitySheep, net.minecraft.entity.monster.EntityIronGolem, net.minecraft.entity.monster.EntityZombie, net.minecraft.entity.boss.EntityDragon, net.minecraft.entity.passive.EntityBat, net.minecraft.entity.monster.EntityCreeper, net.minecraft.entity.monster.EntitySkeleton, net.minecraft.entity.monster.EntityGhast, net.minecraft.entity.passive.EntityChicken, net.minecraft.entity.passive.EntityPig, net.minecraft.entity.monster.EntitySlime, net.minecraft.entity.passive.EntityCow, net.minecraft.entity.monster.EntitySpider, net.minecraft.entity.monster.EntitySnowman, net.minecraft.entity.monster.EntityEnderman, net.minecraft.entity.passive.EntitySquid, net.minecraft.entity.monster.EntityBlaze, net.minecraft.entity.monster.EntitySilverfish, net.minecraft.entity.monster.EntityCaveSpider, and net.minecraft.entity.monster.EntityGiantZombie.
float net.minecraft.entity.EntityLiving.getMaximumHomeDistance | ( | ) |
int net.minecraft.entity.EntityLiving.getMaxSpawnedInChunk | ( | ) |
Will return how many at most can spawn in a chunk at once.
EntityMoveHelper net.minecraft.entity.EntityLiving.getMoveHelper | ( | ) |
PathNavigate net.minecraft.entity.EntityLiving.getNavigator | ( | ) |
Vec3 net.minecraft.entity.EntityLiving.getPosition | ( | float | par1) |
interpolated position vector
float net.minecraft.entity.EntityLiving.getRenderSizeModifier | ( | ) |
Returns render size modifier
Random net.minecraft.entity.EntityLiving.getRNG | ( | ) |
float net.minecraft.entity.EntityLiving.getRotationYawHead | ( | ) |
|
protected |
Gets the pitch of living sounds in living entities.
|
protected |
Returns the volume for the sounds this mob makes.
float net.minecraft.entity.EntityLiving.getSpeedModifier | ( | ) |
This method returns a value to be applied directly to entity speed, this factor is less than 1 when a slowdown potion effect is applied, more than 1 when a haste potion effect is applied and 2 for fleeing entities.
float net.minecraft.entity.EntityLiving.getSwingProgress | ( | float | par1) |
Returns where in the swing animation the living entity is (from 0 to 1). Args: partialTickTime
int net.minecraft.entity.EntityLiving.getTalkInterval | ( | ) |
Get number of ticks, at least during which the living entity will be silent.
String net.minecraft.entity.EntityLiving.getTexture | ( | ) |
Returns the texture's file path as a String.
int net.minecraft.entity.EntityLiving.getTotalArmorValue | ( | ) |
Returns the current armor value as determined by a call to InventoryPlayer.getTotalArmorValue
int net.minecraft.entity.EntityLiving.getVerticalFaceSpeed | ( | ) |
The speed it takes to move the entityliving's rotationPitch through the faceEntity method. This is only currently use in wolves.
void net.minecraft.entity.EntityLiving.handleHealthUpdate | ( | byte | par1) |
boolean net.minecraft.entity.EntityLiving.hasHome | ( | ) |
void net.minecraft.entity.EntityLiving.heal | ( | int | par1) |
Heal living entity (param: amount of half-hearts)
void net.minecraft.entity.EntityLiving.initCreature | ( | ) |
Initialize this creature.
|
protected |
Returns true if the newer Entity AI code should be run
boolean net.minecraft.entity.EntityLiving.isBlocking | ( | ) |
boolean net.minecraft.entity.EntityLiving.isChild | ( | ) |
If Animal, checks if the age timer is negative
|
protected |
Returns whether the entity is in a local (client) world
boolean net.minecraft.entity.EntityLiving.isEntityAlive | ( | ) |
Checks whether target entity is alive.
boolean net.minecraft.entity.EntityLiving.isEntityUndead | ( | ) |
Returns true if this entity is undead.
|
protected |
Dead and sleeping entities cannot move
boolean net.minecraft.entity.EntityLiving.isOnLadder | ( | ) |
returns true if this entity is by a ladder, false otherwise
|
protected |
Only use is to identify if class is an instance of player for experience dropping
boolean net.minecraft.entity.EntityLiving.isPlayerSleeping | ( | ) |
Returns whether player is sleeping or not
boolean net.minecraft.entity.EntityLiving.isPotionActive | ( | int | par1) |
boolean net.minecraft.entity.EntityLiving.isPotionActive | ( | Potion | par1Potion) |
boolean net.minecraft.entity.EntityLiving.isPotionApplicable | ( | PotionEffect | par1PotionEffect) |
boolean net.minecraft.entity.EntityLiving.isWithinHomeDistance | ( | int | par1, |
int | par2, | ||
int | par3 | ||
) |
boolean net.minecraft.entity.EntityLiving.isWithinHomeDistanceCurrentPosition | ( | ) |
Returns true if entity is within home distance from current position
|
protected |
Causes this entity to do an upwards motion (jumping).
|
protected |
sets the dead flag. Used when you fall off the bottom of the world.
void net.minecraft.entity.EntityLiving.knockBack | ( | Entity | par1Entity, |
int | par2, | ||
double | par3, | ||
double | par5 | ||
) |
knocks back this entity
void net.minecraft.entity.EntityLiving.moveEntityWithHeading | ( | float | par1, |
float | par2 | ||
) |
Moves the entity based on the specified heading. Args: strafe, forward
|
protected |
void net.minecraft.entity.EntityLiving.onDeath | ( | DamageSource | par1DamageSource) |
Called when the mob's health reaches 0.
|
protected |
handles entity death timer, experience orb and particle creation
void net.minecraft.entity.EntityLiving.onEntityUpdate | ( | ) |
Gets called every tick from main Entity class
|
protected |
void net.minecraft.entity.EntityLiving.onItemPickup | ( | Entity | par1Entity, |
int | par2 | ||
) |
Called whenever an item is picked up from walking over it. Args: pickedUpEntity, stackSize
void net.minecraft.entity.EntityLiving.onLivingUpdate | ( | ) |
Called frequently so the entity can update its state every tick as required. For example, zombies and skeletons use this to react to sunlight and start to burn.
|
protected |
void net.minecraft.entity.EntityLiving.onUpdate | ( | ) |
Called to update the entity's position/logic.
void net.minecraft.entity.EntityLiving.performHurtAnimation | ( | ) |
Setups the entity to do the hurt animation. Only used by packets in multiplayer.
void net.minecraft.entity.EntityLiving.playLivingSound | ( | ) |
Plays living's sound at its position
MovingObjectPosition net.minecraft.entity.EntityLiving.rayTrace | ( | double | par1, |
float | par3 | ||
) |
Performs a ray trace for the distance specified and using the partial tick time. Args: distance, partialTickTime
|
virtual |
(abstract) Protected helper method to read subclass entity data from NBT.
Implements net.minecraft.entity.Entity.
Reimplemented in net.minecraft.entity.player.EntityPlayer, net.minecraft.entity.monster.EntitySkeleton, net.minecraft.entity.monster.EntityZombie, net.minecraft.entity.monster.EntityGhast, net.minecraft.entity.passive.EntityVillager, net.minecraft.entity.passive.EntityBat, net.minecraft.entity.passive.EntityAnimal, net.minecraft.entity.player.EntityPlayerMP, net.minecraft.entity.passive.EntitySheep, net.minecraft.entity.monster.EntityIronGolem, net.minecraft.entity.passive.EntityOcelot, net.minecraft.entity.passive.EntityWolf, net.minecraft.entity.monster.EntityCreeper, net.minecraft.entity.passive.EntityPig, net.minecraft.entity.monster.EntityPigZombie, net.minecraft.entity.monster.EntitySlime, net.minecraft.entity.monster.EntityEnderman, and net.minecraft.entity.passive.EntityTameable.
void net.minecraft.entity.EntityLiving.removePotionEffect | ( | int | par1) |
Remove the specified potion effect from this entity.
void net.minecraft.entity.EntityLiving.removePotionEffectClient | ( | int | par1) |
Remove the speified potion effect from this entity.
void net.minecraft.entity.EntityLiving.renderBrokenItemStack | ( | ItemStack | par1ItemStack) |
Renders broken item particles using the given ItemStack
void net.minecraft.entity.EntityLiving.setAIMoveSpeed | ( | float | par1) |
set the movespeed used for the new AI system
final void net.minecraft.entity.EntityLiving.setArrowCountInEntity | ( | int | par1) |
sets the amount of arrows stuck in the entity. used for rendering those
void net.minecraft.entity.EntityLiving.setAttackTarget | ( | EntityLiving | par1EntityLiving) |
Sets the active target the Task system uses for tracking
void net.minecraft.entity.EntityLiving.setCanPickUpLoot | ( | boolean | par1) |
void net.minecraft.entity.EntityLiving.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.EntityLiving.setEntityHealth | ( | int | par1) |
void net.minecraft.entity.EntityLiving.setHomeArea | ( | int | par1, |
int | par2, | ||
int | par3, | ||
int | par4 | ||
) |
void net.minecraft.entity.EntityLiving.setJumping | ( | boolean | par1) |
void net.minecraft.entity.EntityLiving.setLastAttackingEntity | ( | Entity | par1Entity) |
void net.minecraft.entity.EntityLiving.setMoveForward | ( | float | par1) |
void net.minecraft.entity.EntityLiving.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.EntityLiving.setPositionAndUpdate | ( | double | par1, |
double | par3, | ||
double | par5 | ||
) |
Move the entity to the coordinates informed, but keep yaw/pitch values.
void net.minecraft.entity.EntityLiving.setRevengeTarget | ( | EntityLiving | par1EntityLiving) |
void net.minecraft.entity.EntityLiving.setRotationYawHead | ( | float | par1) |
Sets the head's yaw rotation of the entity.
boolean net.minecraft.entity.EntityLiving.shouldRiderFaceForward | ( | EntityPlayer | player) |
Returns true if the entity's rider (EntityPlayer) should face forward when mounted. currently only used in vanilla code by pigs.
player | The player who is riding the entity. |
void net.minecraft.entity.EntityLiving.spawnExplosionParticle | ( | ) |
Spawns an explosion particle around the Entity's location
void net.minecraft.entity.EntityLiving.swingItem | ( | ) |
Swings the item the player is holding.
|
protected |
|
protected |
main AI tick function, replaces updateEntityActionState
|
protected |
Updates the arm swing progress counters and animation progress
|
protected |
|
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
|
protected |
void net.minecraft.entity.EntityLiving.updateRidden | ( | ) |
Handles updating while being ridden by an entity
|
virtual |
(abstract) Protected helper method to write subclass entity data to NBT.
Implements net.minecraft.entity.Entity.
Reimplemented in net.minecraft.entity.player.EntityPlayer, net.minecraft.entity.monster.EntitySkeleton, net.minecraft.entity.monster.EntityZombie, net.minecraft.entity.monster.EntityGhast, net.minecraft.entity.passive.EntityBat, net.minecraft.entity.passive.EntityVillager, net.minecraft.entity.passive.EntityAnimal, net.minecraft.entity.player.EntityPlayerMP, net.minecraft.entity.passive.EntitySheep, net.minecraft.entity.monster.EntityIronGolem, net.minecraft.entity.passive.EntityOcelot, net.minecraft.entity.passive.EntityWolf, net.minecraft.entity.monster.EntityCreeper, net.minecraft.entity.passive.EntityPig, net.minecraft.entity.monster.EntityPigZombie, net.minecraft.entity.monster.EntitySlime, net.minecraft.entity.monster.EntityEnderman, and net.minecraft.entity.passive.EntityTameable.
|
protected |
int net.minecraft.entity.EntityLiving.arrowHitTimer = 0 |
float net.minecraft.entity.EntityLiving.attackedAtYaw = 0.0F |
The yaw at which this entity was last attacked from.
|
protected |
The most recent player that has attacked this entity
int net.minecraft.entity.EntityLiving.attackTime = 0 |
float net.minecraft.entity.EntityLiving.cameraPitch |
int net.minecraft.entity.EntityLiving.carryoverDamage |
in each step in the damage calculations, this is set to the 'carryover' that would result if someone was damaged .25 hearts (for example), and added to the damage in the next step
|
protected |
This gets set on entity death, but never used. Looks like a duplicate of isDead
int net.minecraft.entity.EntityLiving.deathTime = 0 |
The amount of time remaining this entity should act 'dead', i.e. have a corpse in the world.
|
protected |
|
protected |
Holds the living entity age, used to control the despawn.
|
protected |
a string holding the type of entity it is currently only implemented in entityPlayer(as 'humanoid')
|
protected |
Chances for each equipment piece from dropping when this entity dies.
int net.minecraft.entity.EntityLiving.experienceValue |
The experience points the Entity gives.
float net.minecraft.entity.EntityLiving.field_70730_aX = (float)(Math.random() * 0.8999999761581421D + 0.10000000149011612D) |
int net.minecraft.entity.EntityLiving.field_70731_aW = -1 |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
float net.minecraft.entity.EntityLiving.field_70769_ao |
float net.minecraft.entity.EntityLiving.field_70770_ap |
final CombatTracker net.minecraft.entity.EntityLiving.field_94063_bt = new CombatTracker(this) |
|
protected |
int net.minecraft.entity.EntityLiving.hurtTime |
The amount of time remaining this entity should act 'hurt'. (Visual appearance of red tint)
boolean net.minecraft.entity.EntityLiving.isJumping = false |
used to check whether entity is jumping.
boolean net.minecraft.entity.EntityLiving.isSwingInProgress = false |
Whether an arm swing is currently in progress.
float net.minecraft.entity.EntityLiving.jumpMovementFactor = 0.02F |
A factor used to determine how far this entity will move each tick if it is jumping or falling.
float net.minecraft.entity.EntityLiving.landMovementFactor = 0.1F |
A factor used to determine how far this entity will move each tick if it is walking on land. Adjusted by speed, and slipperiness of the current block.
|
protected |
Amount of damage taken in last hit, in half-hearts
float net.minecraft.entity.EntityLiving.limbSwing |
Only relevant when limbYaw is not 0(the entity is moving). Influences where in its swing legs and arms currently are.
float net.minecraft.entity.EntityLiving.limbYaw |
int net.minecraft.entity.EntityLiving.livingSoundTime |
Number of ticks since this EntityLiving last produced its sound
int net.minecraft.entity.EntityLiving.maxHurtResistantTime = 20 |
int net.minecraft.entity.EntityLiving.maxHurtTime |
What the hurt time was max set to last.
|
protected |
|
protected |
|
protected |
|
protected |
The number of updates over which the new position and rotation are to be applied to the entity.
|
protected |
The new X position to be applied to the entity.
|
protected |
The new Y position to be applied to the entity.
|
protected |
The new Z position to be applied to the entity.
|
protected |
The new yaw rotation to be applied to the entity.
|
protected |
The new yaw rotation to be applied to the entity.
|
protected |
How long to keep a specific target entity
|
static |
Probability to pick up loot
float net.minecraft.entity.EntityLiving.prevCameraPitch |
int net.minecraft.entity.EntityLiving.prevHealth |
float net.minecraft.entity.EntityLiving.prevLimbYaw |
float net.minecraft.entity.EntityLiving.prevRenderYawOffset = 0.0F |
float net.minecraft.entity.EntityLiving.prevRotationYawHead = 0.0F |
Entity head rotation yaw at previous tick
float net.minecraft.entity.EntityLiving.prevSwingProgress |
|
protected |
|
protected |
Set to 60 when hit by the player or the player's wolf, then decrements. Used to determine whether the entity should drop items on death.
float net.minecraft.entity.EntityLiving.renderYawOffset = 0.0F |
float net.minecraft.entity.EntityLiving.rotationYawHead = 0.0F |
Entity head rotation yaw
|
protected |
The score value of the Mob, the amount of points the mob is worth.
float net.minecraft.entity.EntityLiving.swingProgress |
int net.minecraft.entity.EntityLiving.swingProgressInt = 0 |
final EntityAITasks net.minecraft.entity.EntityLiving.targetTasks |
final EntityAITasks net.minecraft.entity.EntityLiving.tasks |
|
protected |
the path for the texture of this entityLiving