IAdditionalDataProviderAbstractEntityPlayer, AbstractEntitySlimepublic abstract class EntityLiving extends Entity
| Modifier and Type | Field | Description |
|---|---|---|
protected int |
breath |
|
protected int |
damageCooldown |
|
int |
deathTimer |
|
protected int |
health |
|
boolean |
jumping |
|
int |
jumpTicks |
|
int |
jumpTimeout |
|
int |
lastDamageTime |
|
protected int |
maxBreath |
|
protected int |
maxHealth |
canBreathe, canClimb, canSwim, chunkX, chunkY, currentAiTask, dead, facing, fallStartY, interpolationX, interpolationY, isClimbing, isFalling, lastSyncX, lastSyncY, submergedLiquid, ticksExistedcollidedHor, collidedVert, currentBounds, lastTickX, lastTickY, motionX, motionY, onGround, world| Constructor | Description |
|---|---|
EntityLiving(IWorld world) |
| Modifier and Type | Method | Description |
|---|---|---|
int |
getBreath() |
|
protected int |
getDamageCooldown() |
|
int |
getDeathLingerTime() |
|
int |
getHealth() |
|
abstract int |
getInitialMaxHealth() |
|
protected int |
getJumpTimeout() |
|
abstract float |
getKillReward(AbstractEntityPlayer player) |
|
int |
getMaxBreath() |
|
int |
getMaxHealth() |
|
abstract int |
getRegenRate() |
|
boolean |
jump(double motion) |
|
void |
load(DataSet set,
boolean forFullSync) |
|
boolean |
onAttack(AbstractEntityPlayer player,
double mouseX,
double mouseY,
int intendedDamage) |
|
void |
save(DataSet set,
boolean forFullSync) |
|
void |
setBreath(int breath) |
|
void |
setHealth(int health) |
|
void |
setMaxBreath(int maxBreath) |
|
void |
setMaxHealth(int maxHealth) |
|
void |
setReadyToRemove() |
|
boolean |
shouldBeRemoved() |
|
boolean |
takeDamage(int amount) |
|
void |
update(IGameInstance game) |
addAiTask, addEffect, applyKnockback, applyMotion, canCollideWith, doesInterpolate, doesSave, doesSync, getActiveEffects, getAdditionalData, getDespawnHandler, getEyeHeight, getHeight, getInteractionPriority, getMaxInteractionDistance, getOrCreateAdditionalData, getRenderer, getRenderPriority, getSyncFrequency, getTask, getTaskId, getUniqueId, getWidth, hasAdditionalData, hasEffect, isDead, moveToChunk, moveToWorld, onCollideWithEntity, onCollideWithTile, onEntityCollision, onEntityIntersection, onGroundHit, onInteractWith, onInteractWithBreakKey, onIntersectWithEntity, onIntersectWithTile, onPositionReset, onRemoveFromWorld, onTileCollision, onTileIntersection, removeEffect, sendToClients, setAdditionalData, setDead, setUniqueId, shouldBeFalling, shouldMakeChunkPersist, shouldRender, shouldStartClimbingcanCollideWithTile, getLerpedX, getLerpedY, getOriginX, getOriginY, getX, getY, move, resetBounds, setBounds, setBoundsOrigin, setPospublic boolean jumping
public int jumpTicks
public int jumpTimeout
public int lastDamageTime
public int deathTimer
protected int health
protected int maxHealth
protected int maxBreath
protected int breath
protected int damageCooldown
public EntityLiving(IWorld world)
public void update(IGameInstance game)
public int getDeathLingerTime()
public boolean jump(double motion)
protected int getJumpTimeout()
protected int getDamageCooldown()
public boolean shouldBeRemoved()
shouldBeRemoved in class Entitypublic void setReadyToRemove()
setReadyToRemove in class Entitypublic boolean takeDamage(int amount)
public int getHealth()
public void setHealth(int health)
public int getMaxHealth()
public void setMaxHealth(int maxHealth)
public int getBreath()
public void setBreath(int breath)
public int getMaxBreath()
public void setMaxBreath(int maxBreath)
public abstract int getInitialMaxHealth()
public abstract int getRegenRate()
public abstract float getKillReward(AbstractEntityPlayer player)
public boolean onAttack(AbstractEntityPlayer player, double mouseX, double mouseY, int intendedDamage)