Package de.ellpeck.rockbottom.api.entity
Class LivingEntity
java.lang.Object
de.ellpeck.rockbottom.api.entity.MovableWorldObject
de.ellpeck.rockbottom.api.entity.Entity
de.ellpeck.rockbottom.api.entity.LivingEntity
- All Implemented Interfaces:
IAdditionalDataProvider
- Direct Known Subclasses:
AbstractPlayerEntity,AbstractSlimeEntity
-
Nested Class Summary
Nested classes/interfaces inherited from class de.ellpeck.rockbottom.api.entity.Entity
Entity.IFactory -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected intintprotected EmotionHandlerprotected intbooleanintintintprotected intprotected intFields inherited from class de.ellpeck.rockbottom.api.entity.Entity
canBreathe, canClimb, canSwim, chunkX, chunkY, currentAiTask, dead, facing, fallStartY, interpolationX, interpolationY, isClimbing, isDropping, isFalling, isFlying, lastSyncX, lastSyncY, submergedLiquid, ticksExistedFields inherited from class de.ellpeck.rockbottom.api.entity.MovableWorldObject
collidedHor, collidedVert, currentBounds, lastTickX, lastTickY, motionX, motionY, onGround, world -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintprotected intintintabstract intprotected intabstract floatgetKillReward(AbstractPlayerEntity player) intintabstract intbooleanjump(double motion) voidbooleanonAttack(AbstractPlayerEntity player, double mouseX, double mouseY, int intendedDamage) voidvoidsetBreath(int breath) voidsetHealth(int health) voidsetMaxBreath(int maxBreath) voidsetMaxHealth(int maxHealth) voidbooleanbooleantakeDamage(int amount) voidupdate(IGameInstance game) Methods inherited from class de.ellpeck.rockbottom.api.entity.Entity
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, shouldStartClimbingMethods inherited from class de.ellpeck.rockbottom.api.entity.MovableWorldObject
canCollideWithTile, getLerpedX, getLerpedY, getOriginX, getOriginY, getX, getY, move, resetBounds, setBounds, setBoundsOrigin, setPos
-
Field Details
-
jumping
public boolean jumping -
jumpTicks
public int jumpTicks -
jumpTimeout
public int jumpTimeout -
lastDamageTime
public int lastDamageTime -
deathTimer
public int deathTimer -
health
protected int health -
maxHealth
protected int maxHealth -
maxBreath
protected int maxBreath -
breath
protected int breath -
damageCooldown
protected int damageCooldown -
emotionHandler
-
-
Constructor Details
-
LivingEntity
-
-
Method Details
-
update
-
getDeathLingerTime
public int getDeathLingerTime() -
jump
public boolean jump(double motion) -
getJumpTimeout
protected int getJumpTimeout() -
getDamageCooldown
protected int getDamageCooldown() -
shouldBeRemoved
public boolean shouldBeRemoved()- Overrides:
shouldBeRemovedin classEntity
-
setReadyToRemove
public void setReadyToRemove()- Overrides:
setReadyToRemovein classEntity
-
takeDamage
public boolean takeDamage(int amount) -
getHealth
public int getHealth() -
setHealth
public void setHealth(int health) -
getMaxHealth
public int getMaxHealth() -
setMaxHealth
public void setMaxHealth(int maxHealth) -
getBreath
public int getBreath() -
setBreath
public void setBreath(int breath) -
getMaxBreath
public int getMaxBreath() -
setMaxBreath
public void setMaxBreath(int maxBreath) -
getInitialMaxHealth
public abstract int getInitialMaxHealth() -
getRegenRate
public abstract int getRegenRate() -
getKillReward
-
save
-
load
-
onAttack
public boolean onAttack(AbstractPlayerEntity player, double mouseX, double mouseY, int intendedDamage) -
getEmotionHandler
-
getEmotion
-