Package net.minecraft.world.entity
Class Entity
- java.lang.Object
-
- net.minecraft.world.entity.Entity
-
- Direct Known Subclasses:
Arrow
,Boat
,EndCrystal
,EnderDragonPart
,ExperienceOrb
,EyeOfEnder
,FallingBlockEntity
,Fireball
,FishingHook
,ItemEntity
,LightningBolt
,LivingEntity
,Minecart
,Painting
,Particle
,PrimedTnt
,Projectile
public abstract class Entity extends java.lang.Object
-
-
Field Summary
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
addEntityID(NBTTagCompound var1)
void
addToPlayerScore(Entity entity, int i)
void
addVelocity(double var1, double var3, double var5)
void
applyEntityCollision(Entity var1)
boolean
attackEntityFrom(DamageSource var1, int var2)
boolean
canAttackWithItem()
boolean
canBeCollidedWith()
boolean
canBePushed()
protected boolean
canTriggerWalking()
protected void
dealFireDamage(int var1)
ItemEntity
dropItem(int var1, int var2)
ItemEntity
dropItemWithOffset(int var1, int var2, float var3)
ItemEntity
entityDropItem(ItemStack var1, float var2)
protected abstract void
entityInit()
boolean
equals(java.lang.Object var1)
void
extinguish()
protected void
fall(float var1)
void
func_48079_f(float f)
int
getAir()
AxisAlignedBB
getBoundingBox()
float
getBrightness(float var1)
@net.minecraft.modding.api.Side.Client int
getBrightnessForRender(float var1)
float
getCollisionBorderSize()
AxisAlignedBB
getCollisionBox(Entity var1)
java.lang.String
getCurrentBiomeName()
DataWatcher
getDataWatcher()
double
getDistance(double var1, double var3, double var5)
double
getDistanceSq(double var1, double var3, double var5)
double
getDistanceSqToEntity(Entity var1)
float
getDistanceToEntity(Entity var1)
protected java.lang.String
getEntityString()
float
getEyeHeight()
protected boolean
getFlag(int var1)
float
getHeadYaw()
ItemStack[]
getInventory()
Vec3D
getLookVec()
double
getMountedYOffset()
Entity[]
getParts()
@net.minecraft.modding.api.Side.Client float
getShadowSize()
@Client java.lang.String
getTexture()
java.lang.String
getUsername()
double
getYOffset()
void
handleHealthUpdate(byte byte0)
boolean
handleLavaMovement()
boolean
handleWaterMovement()
int
hashCode()
boolean
interact(Player var1)
boolean
isBurning()
@net.minecraft.modding.api.Side.Client boolean
isEating()
boolean
isEntityAlive()
boolean
isEntityEqual(Entity var1)
boolean
isEntityInsideOpaqueBlock()
boolean
isImmuneToFire()
@net.minecraft.modding.api.Side.Client boolean
isInRangeToRenderDist(double var1)
@net.minecraft.modding.api.Side.Client boolean
isInRangeToRenderVec3D(Vec3D par1Vec3D)
boolean
isInsideOfMaterial(Material var1)
boolean
isInsideOfMaterial(Material var1, double atHeight)
boolean
isInWater()
boolean
isOffsetPositionInLiquid(double var1, double var3, double var5)
@net.minecraft.modding.api.Side.Client boolean
isRiding()
boolean
isSneaking()
boolean
isSprinting()
boolean
isSubmergedInAnyFluid(double atHeight)
boolean
isWet()
protected void
kill()
void
mountEntity(Entity var1)
void
moveEntity(double var1, double var3, double var5)
void
moveFlying(float var1, float var2, float var3)
protected NBTTagList
newDoubleNBTList(double[] var1)
protected NBTTagList
newFloatNBTList(float[] var1)
void
onCollideWithPlayer(Player entityplayer)
void
onEntityUpdate()
void
onKillEntity(LivingEntity entityliving)
void
onStruckByLightning(LightningBolt var1)
void
onUpdate()
void
outfitWithItem(int i, int j, int k)
void
performHurtAnimation()
protected void
playStepSound(int var1, int var2, int var3, int var4)
protected void
preparePlayerToSpawn()
protected boolean
pushOutOfBlocks(double var1, double var3, double var5)
protected abstract void
readEntityFromNBT(NBTTagCompound nbttagcompound)
void
readFromNBT(NBTTagCompound var1)
void
setAir(int var1)
void
setAngles(float var1, float var2)
protected void
setBeenAttacked()
void
setDead()
void
setEating(boolean var1)
void
setFire(int var1)
void
setFlag(int var1, boolean var2)
void
setInPortal()
void
setInWeb()
void
setLocationAndAngles(double var1, double var3, double var5, float var7, float var8)
protected void
setOnFireFromLava()
void
setPosition(double var1, double var3, double var5)
void
setPositionAndRotation(double var1, double var3, double var5, float var7, float var8)
void
setPositionAndRotation2(double var1, double var3, double var5, float var7, float var8, int var9)
protected void
setRotation(float var1, float var2)
protected void
setSize(float var1, float var2)
void
setSneaking(boolean var1)
void
setSprinting(boolean var1)
void
setVelocity(double var1, double var3, double var5)
void
setWorld(World var1)
java.lang.String
toString()
protected void
updateFallState(double var1, boolean var3)
void
updateRidden()
void
updateRiderPosition()
protected abstract void
writeEntityToNBT(NBTTagCompound nbttagcompound)
void
writeToNBT(NBTTagCompound var1)
-
-
-
Field Detail
-
entityId
public int entityId
-
renderDistanceWeight
public double renderDistanceWeight
-
preventEntitySpawning
public boolean preventEntitySpawning
-
riddenByEntity
public Entity riddenByEntity
-
ridingEntity
public Entity ridingEntity
-
worldObj
public World worldObj
-
prevPosX
public double prevPosX
-
prevPosY
public double prevPosY
-
prevPosZ
public double prevPosZ
-
posX
public double posX
-
posY
public double posY
-
posZ
public double posZ
-
motionX
public double motionX
-
motionY
public double motionY
-
motionZ
public double motionZ
-
rotationYaw
public float rotationYaw
-
rotationPitch
public float rotationPitch
-
prevRotationYaw
public float prevRotationYaw
-
prevRotationPitch
public float prevRotationPitch
-
boundingBox
public final AxisAlignedBB boundingBox
-
onGround
public boolean onGround
-
isCollidedHorizontally
public boolean isCollidedHorizontally
-
isCollidedVertically
public boolean isCollidedVertically
-
isCollided
public boolean isCollided
-
velocityChanged
public boolean velocityChanged
-
isInWeb
protected boolean isInWeb
-
field_9293_aM
public boolean field_9293_aM
-
isDead
public boolean isDead
-
yOffset
public float yOffset
-
width
public float width
-
height
public float height
-
prevDistanceWalkedModified
public float prevDistanceWalkedModified
-
distanceWalkedModified
public float distanceWalkedModified
-
fallDistance
public float fallDistance
-
lastTickPosX
public double lastTickPosX
-
lastTickPosY
public double lastTickPosY
-
lastTickPosZ
public double lastTickPosZ
-
ySize
public float ySize
-
stepHeight
public float stepHeight
-
noClip
public boolean noClip
-
entityCollisionReduction
public float entityCollisionReduction
-
rand
protected java.util.Random rand
-
ticksExisted
public int ticksExisted
-
fireResistance
public int fireResistance
-
inWater
protected boolean inWater
-
heartsLife
public int heartsLife
-
playerNameForSkin
public java.lang.String playerNameForSkin
-
slim
public boolean slim
-
isImmuneToFire
protected boolean isImmuneToFire
-
dataWatcher
protected DataWatcher dataWatcher
-
addedToChunk
public boolean addedToChunk
-
chunkCoordX
public int chunkCoordX
-
chunkCoordY
public int chunkCoordY
-
chunkCoordZ
public int chunkCoordZ
-
serverPosX
@Client public @net.minecraft.modding.api.Side.Client int serverPosX
-
serverPosY
@Client public @net.minecraft.modding.api.Side.Client int serverPosY
-
serverPosZ
@Client public @net.minecraft.modding.api.Side.Client int serverPosZ
-
ignoreFrustumCheck
public boolean ignoreFrustumCheck
-
isAirBorne
public boolean isAirBorne
-
isJesusColliding
public boolean isJesusColliding
-
-
Constructor Detail
-
Entity
public Entity(World var1)
-
-
Method Detail
-
entityInit
protected abstract void entityInit()
-
getDataWatcher
public DataWatcher getDataWatcher()
-
equals
public boolean equals(java.lang.Object var1)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
preparePlayerToSpawn
@Client protected void preparePlayerToSpawn()
-
setDead
public void setDead()
-
setSize
protected void setSize(float var1, float var2)
-
setRotation
protected void setRotation(float var1, float var2)
-
setPosition
public void setPosition(double var1, double var3, double var5)
-
setAngles
@Client public void setAngles(float var1, float var2)
-
onUpdate
public void onUpdate()
-
onEntityUpdate
public void onEntityUpdate()
-
setOnFireFromLava
protected void setOnFireFromLava()
-
setFire
public void setFire(int var1)
-
extinguish
public void extinguish()
-
kill
protected void kill()
-
isOffsetPositionInLiquid
public boolean isOffsetPositionInLiquid(double var1, double var3, double var5)
-
moveEntity
public void moveEntity(double var1, double var3, double var5)
-
playStepSound
protected void playStepSound(int var1, int var2, int var3, int var4)
-
canTriggerWalking
protected boolean canTriggerWalking()
-
updateFallState
protected void updateFallState(double var1, boolean var3)
-
getBoundingBox
public AxisAlignedBB getBoundingBox()
-
dealFireDamage
protected void dealFireDamage(int var1)
-
isImmuneToFire
public final boolean isImmuneToFire()
-
fall
protected void fall(float var1)
-
isWet
public boolean isWet()
-
isInWater
public boolean isInWater()
-
isSubmergedInAnyFluid
public boolean isSubmergedInAnyFluid(double atHeight)
-
handleWaterMovement
public boolean handleWaterMovement()
-
isInsideOfMaterial
public boolean isInsideOfMaterial(Material var1)
-
isInsideOfMaterial
public boolean isInsideOfMaterial(Material var1, double atHeight)
-
getEyeHeight
public float getEyeHeight()
-
handleLavaMovement
public boolean handleLavaMovement()
-
moveFlying
public void moveFlying(float var1, float var2, float var3)
-
getBrightnessForRender
@Client public @net.minecraft.modding.api.Side.Client int getBrightnessForRender(float var1)
-
getBrightness
public float getBrightness(float var1)
-
setWorld
public void setWorld(World var1)
-
setPositionAndRotation
public void setPositionAndRotation(double var1, double var3, double var5, float var7, float var8)
-
setLocationAndAngles
public void setLocationAndAngles(double var1, double var3, double var5, float var7, float var8)
-
getDistanceToEntity
public float getDistanceToEntity(Entity var1)
-
getDistanceSq
public double getDistanceSq(double var1, double var3, double var5)
-
getDistance
public double getDistance(double var1, double var3, double var5)
-
getDistanceSqToEntity
public double getDistanceSqToEntity(Entity var1)
-
onCollideWithPlayer
public void onCollideWithPlayer(Player entityplayer)
-
applyEntityCollision
public void applyEntityCollision(Entity var1)
-
addVelocity
public void addVelocity(double var1, double var3, double var5)
-
setBeenAttacked
protected void setBeenAttacked()
-
attackEntityFrom
public boolean attackEntityFrom(DamageSource var1, int var2)
-
canBeCollidedWith
public boolean canBeCollidedWith()
-
canBePushed
public boolean canBePushed()
-
addToPlayerScore
public void addToPlayerScore(Entity entity, int i)
-
isInRangeToRenderVec3D
@Client public @net.minecraft.modding.api.Side.Client boolean isInRangeToRenderVec3D(Vec3D par1Vec3D)
-
isInRangeToRenderDist
@Client public @net.minecraft.modding.api.Side.Client boolean isInRangeToRenderDist(double var1)
-
addEntityID
public boolean addEntityID(NBTTagCompound var1)
-
writeToNBT
public void writeToNBT(NBTTagCompound var1)
-
readFromNBT
public void readFromNBT(NBTTagCompound var1)
-
getEntityString
protected final java.lang.String getEntityString()
-
readEntityFromNBT
protected abstract void readEntityFromNBT(NBTTagCompound nbttagcompound)
-
writeEntityToNBT
protected abstract void writeEntityToNBT(NBTTagCompound nbttagcompound)
-
newDoubleNBTList
protected NBTTagList newDoubleNBTList(double[] var1)
-
newFloatNBTList
protected NBTTagList newFloatNBTList(float[] var1)
-
getShadowSize
@Client public @net.minecraft.modding.api.Side.Client float getShadowSize()
-
dropItem
public ItemEntity dropItem(int var1, int var2)
-
dropItemWithOffset
public ItemEntity dropItemWithOffset(int var1, int var2, float var3)
-
entityDropItem
public ItemEntity entityDropItem(ItemStack var1, float var2)
-
isEntityAlive
public boolean isEntityAlive()
-
isEntityInsideOpaqueBlock
public boolean isEntityInsideOpaqueBlock()
-
interact
public boolean interact(Player var1)
-
getCollisionBox
public AxisAlignedBB getCollisionBox(Entity var1)
-
updateRidden
public void updateRidden()
-
updateRiderPosition
public void updateRiderPosition()
-
getYOffset
public double getYOffset()
-
getMountedYOffset
public double getMountedYOffset()
-
mountEntity
public void mountEntity(Entity var1)
-
setPositionAndRotation2
@Client public void setPositionAndRotation2(double var1, double var3, double var5, float var7, float var8, int var9)
-
getCollisionBorderSize
public float getCollisionBorderSize()
-
getLookVec
public Vec3D getLookVec()
-
setInPortal
public void setInPortal()
-
setVelocity
@Client public void setVelocity(double var1, double var3, double var5)
-
handleHealthUpdate
@Client public void handleHealthUpdate(byte byte0)
-
performHurtAnimation
@Client public void performHurtAnimation()
-
outfitWithItem
@Client public void outfitWithItem(int i, int j, int k)
-
getInventory
public ItemStack[] getInventory()
-
isBurning
public boolean isBurning()
-
isRiding
@Client public @net.minecraft.modding.api.Side.Client boolean isRiding()
-
isSneaking
public boolean isSneaking()
-
setSneaking
public void setSneaking(boolean var1)
-
isSprinting
public boolean isSprinting()
-
setSprinting
public void setSprinting(boolean var1)
-
isEating
@Client public @net.minecraft.modding.api.Side.Client boolean isEating()
-
setEating
public void setEating(boolean var1)
-
getFlag
protected boolean getFlag(int var1)
-
setFlag
public void setFlag(int var1, boolean var2)
-
getAir
public int getAir()
-
setAir
public void setAir(int var1)
-
onStruckByLightning
public void onStruckByLightning(LightningBolt var1)
-
onKillEntity
public void onKillEntity(LivingEntity entityliving)
-
pushOutOfBlocks
protected boolean pushOutOfBlocks(double var1, double var3, double var5)
-
setInWeb
public void setInWeb()
-
getUsername
public java.lang.String getUsername()
-
getParts
public Entity[] getParts()
-
isEntityEqual
public boolean isEntityEqual(Entity var1)
-
func_48079_f
@Client public void func_48079_f(float f)
-
getHeadYaw
public float getHeadYaw()
-
canAttackWithItem
public boolean canAttackWithItem()
-
getCurrentBiomeName
public java.lang.String getCurrentBiomeName()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-