Class LivingEntity

All Implemented Interfaces:
IAdditionalDataProvider
Direct Known Subclasses:
AbstractPlayerEntity, AbstractSlimeEntity

public abstract class LivingEntity extends Entity
  • 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

      protected EmotionHandler emotionHandler
  • Constructor Details

    • LivingEntity

      public LivingEntity(IWorld world)
  • Method Details

    • update

      public void update(IGameInstance game)
      Overrides:
      update in class Entity
    • getDeathLingerTime

      public int getDeathLingerTime()
    • jump

      public boolean jump(double motion)
    • getJumpTimeout

      protected int getJumpTimeout()
    • getDamageCooldown

      protected int getDamageCooldown()
    • shouldBeRemoved

      public boolean shouldBeRemoved()
      Overrides:
      shouldBeRemoved in class Entity
    • setReadyToRemove

      public void setReadyToRemove()
      Overrides:
      setReadyToRemove in class Entity
    • 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

      public abstract float getKillReward(AbstractPlayerEntity player)
    • save

      public void save(DataSet set, boolean forFullSync)
      Overrides:
      save in class Entity
    • load

      public void load(DataSet set, boolean forFullSync)
      Overrides:
      load in class Entity
    • onAttack

      public boolean onAttack(AbstractPlayerEntity player, double mouseX, double mouseY, int intendedDamage)
      Overrides:
      onAttack in class Entity
    • getEmotionHandler

      public EmotionHandler getEmotionHandler()
    • getEmotion

      public Emotion getEmotion()