IAdditionalDataProviderAbstractEntityPlayer, AbstractEntitySlimepublic abstract class EntityLiving extends Entity
| Modifier and Type | Field | Description |
|---|---|---|
int |
deathTimer |
|
protected int |
health |
|
boolean |
jumping |
|
int |
jumpTicks |
|
int |
jumpTimeout |
|
int |
lastDamageTime |
|
protected int |
maxHealth |
canClimb, chunkX, chunkY, currentAiTask, dead, facing, fallStartY, isClimbing, isFalling, lastX, lastY, ticksExistedcollidedHor, collidedVert, currentBounds, motionX, motionY, onGround, world| Constructor | Description |
|---|---|
EntityLiving(IWorld world) |
| Modifier and Type | Method | Description |
|---|---|---|
int |
getDeathLingerTime() |
|
int |
getHealth() |
|
abstract int |
getInitialMaxHealth() |
|
protected int |
getJumpTimeout() |
|
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 |
setMaxHealth(int maxHealth) |
|
void |
setReadyToRemove() |
|
boolean |
shouldBeRemoved() |
|
void |
takeDamage(int amount) |
|
void |
update(IGameInstance game) |
addAiTask, addEffect, applyMotion, canCollideWith, doesSave, doesSync, getActiveEffects, getAdditionalData, getDespawnHandler, getHeight, getInteractionPriority, getMaxInteractionDistance, getOrCreateAdditionalData, getRenderer, getRenderPriority, getSyncFrequency, getTask, getTaskId, getUniqueId, getWidth, hasAdditionalData, hasEffect, isDead, moveToChunk, onCollideWithEntity, onCollideWithTile, onEntityCollision, onEntityIntersection, onGroundHit, onInteractWith, onIntersectWithEntity, onIntersectWithTile, onRemoveFromWorld, onTileCollision, onTileIntersection, removeEffect, setAdditionalData, setDead, setUniqueId, shouldMakeChunkPersist, shouldRender, shouldStartClimbingcanCollideWithTile, getOriginX, getOriginY, getX, getY, move, resetBounds, setBounds, setBoundsOrigin, setPospublic boolean jumping
public int jumpTicks
public int jumpTimeout
protected int health
protected int maxHealth
public int lastDamageTime
public int deathTimer
public EntityLiving(IWorld world)
public void update(IGameInstance game)
public int getDeathLingerTime()
public boolean jump(double motion)
protected int getJumpTimeout()
public int getHealth()
public void setHealth(int health)
public boolean shouldBeRemoved()
shouldBeRemoved in class Entitypublic void setReadyToRemove()
setReadyToRemove in class Entitypublic void takeDamage(int amount)
public int getMaxHealth()
public void setMaxHealth(int maxHealth)
public abstract int getInitialMaxHealth()
public abstract int getRegenRate()
public boolean onAttack(AbstractEntityPlayer player, double mouseX, double mouseY, int intendedDamage)