IAdditionalDataProviderAbstractEntityPlayer, AbstractEntitySlimepublic abstract class EntityLiving extends Entity
| Modifier and Type | Field | Description |
|---|---|---|
protected int |
health |
|
boolean |
jumping |
|
int |
jumpTicks |
|
int |
jumpTimeout |
canClimb, chunkX, chunkY, currentAiTask, dead, facing, fallStartY, isClimbing, isFalling, lastX, lastY, ticksExistedcollidedHor, collidedVert, currentBounds, motionX, motionY, onGround, world, x, y| Constructor | Description |
|---|---|
EntityLiving(IWorld world) |
| Modifier and Type | Method | Description |
|---|---|---|
int |
getHealth() |
|
protected int |
getJumpTimeout() |
|
abstract int |
getMaxHealth() |
|
abstract int |
getRegenRate() |
|
boolean |
jump(double motion) |
|
void |
load(DataSet set) |
|
boolean |
onAttack(AbstractEntityPlayer player,
double mouseX,
double mouseY,
int intendedDamage) |
|
void |
save(DataSet set) |
|
void |
setHealth(int health) |
|
void |
takeDamage(int amount) |
|
void |
update(IGameInstance game) |
addAiTask, addEffect, applyMotion, canCollideWith, doesSave, doesSync, getActiveEffects, getAdditionalData, getHeight, getInteractionPriority, getMaxInteractionDistance, getOrCreateAdditionalData, getRenderer, getRenderPriority, getSyncFrequency, getTask, getTaskId, getUniqueId, getWidth, hasAdditionalData, hasEffect, isDead, kill, moveToChunk, onCollideWithEntity, onCollideWithTile, onEntityCollision, onEntityIntersection, onGroundHit, onInteractWith, onIntersectWithEntity, onIntersectWithTile, onRemoveFromWorld, onTileCollision, onTileIntersection, removeEffect, setAdditionalData, setDead, setUniqueId, shouldBeRemoved, shouldMakeChunkPersist, shouldRender, shouldStartClimbingcanCollideWithTile, move, setPos, updateBoundspublic boolean jumping
public int jumpTicks
public int jumpTimeout
protected int health
public EntityLiving(IWorld world)
public void update(IGameInstance game)
public boolean jump(double motion)
protected int getJumpTimeout()
public int getHealth()
public void setHealth(int health)
public void takeDamage(int amount)
public abstract int getMaxHealth()
public abstract int getRegenRate()
public boolean onAttack(AbstractEntityPlayer player, double mouseX, double mouseY, int intendedDamage)