public abstract class LivingEntity extends Entity
Entity.IFactory| Modifier and Type | Field and Description |
|---|---|
protected int |
breath |
protected int |
damageCooldown |
int |
deathTimer |
protected EmotionHandler |
emotionHandler |
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, isDropping, isFalling, isFlying, lastSyncX, lastSyncY, submergedLiquid, ticksExistedcollidedHor, collidedVert, currentBounds, lastTickX, lastTickY, motionX, motionY, onGround, world| Constructor and Description |
|---|
LivingEntity(IWorld world) |
| Modifier and Type | Method and Description |
|---|---|
int |
getBreath() |
protected int |
getDamageCooldown() |
int |
getDeathLingerTime() |
Emotion |
getEmotion() |
EmotionHandler |
getEmotionHandler() |
int |
getHealth() |
abstract int |
getInitialMaxHealth() |
protected int |
getJumpTimeout() |
abstract float |
getKillReward(AbstractPlayerEntity player) |
int |
getMaxBreath() |
int |
getMaxHealth() |
abstract int |
getRegenRate() |
boolean |
jump(double motion) |
void |
load(DataSet set,
boolean forFullSync) |
boolean |
onAttack(AbstractPlayerEntity 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, getEffectModifier, getEyeHeight, getHeight, getInteractionPriority, getMaxInteractionDistance, getOrCreateAdditionalData, getRegistryName, 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
protected EmotionHandler emotionHandler
public LivingEntity(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(AbstractPlayerEntity player)
public boolean onAttack(AbstractPlayerEntity player, double mouseX, double mouseY, int intendedDamage)
public EmotionHandler getEmotionHandler()
public Emotion getEmotion()