IAdditionalDataProviderAbstractEntityPlayer, AbstractEntitySlimepublic abstract class EntityLiving extends Entity
| Modifier and Type | Field | Description |
|---|---|---|
protected int |
health |
|
boolean |
jumping |
|
int |
jumpTicks |
|
int |
jumpTimeout |
|
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 |
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 |
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, getOriginX, getOriginY, getX, getY, move, resetBounds, setBounds, setBoundsOrigin, setPospublic boolean jumping
public int jumpTicks
public int jumpTimeout
protected int health
protected int maxHealth
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 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)