Class EntityLiving

java.lang.Object
com.zenith.cache.data.entity.Entity
com.zenith.cache.data.entity.EntityLiving
Direct Known Subclasses:
EntityPlayer, EntityStandard

public class EntityLiving extends Entity
  • Field Details

    • lerpSteps

      protected int lerpSteps
    • lerpX

      protected double lerpX
    • lerpY

      protected double lerpY
    • lerpZ

      protected double lerpZ
    • lerpYaw

      protected double lerpYaw
    • lerpPitch

      protected double lerpPitch
    • lerpHeadYaw

      protected double lerpHeadYaw
    • lerpHeadSteps

      protected int lerpHeadSteps
    • health

      protected @Nullable Float health
    • potionEffectMap

      protected Map<Effect, PotionEffect> potionEffectMap
    • equipment

      protected Map<EquipmentSlot, ItemStack> equipment
  • Constructor Details

    • EntityLiving

      public EntityLiving()
  • Method Details

    • addPackets

      public void addPackets(@NonNull Consumer<Packet> consumer)
      Overrides:
      addPackets in class Entity
    • isAlive

      public boolean isAlive()
    • isSleeping

      public boolean isSleeping()
    • isSwimming

      public boolean isSwimming()
    • isBaby

      public boolean isBaby()
    • dimensions

      public org.cloudburstmc.math.vector.Vector2d dimensions()
      Overrides:
      dimensions in class Entity
    • lerpTo

      public void lerpTo(double x, double y, double z, float yaw, float pitch, int steps)
      Overrides:
      lerpTo in class Entity
    • lerpHeadTo

      public void lerpHeadTo(float yaw, int steps)
      Overrides:
      lerpHeadTo in class Entity
    • cancelLerp

      public void cancelLerp()
      Overrides:
      cancelLerp in class Entity
    • lerpTargetX

      public double lerpTargetX()
      Overrides:
      lerpTargetX in class Entity
    • lerpTargetY

      public double lerpTargetY()
      Overrides:
      lerpTargetY in class Entity
    • lerpTargetZ

      public double lerpTargetZ()
      Overrides:
      lerpTargetZ in class Entity
    • lerpTargetPitch

      public float lerpTargetPitch()
      Overrides:
      lerpTargetPitch in class Entity
    • lerpTargetYaw

      public float lerpTargetYaw()
      Overrides:
      lerpTargetYaw in class Entity
    • lerpTargetHeadYaw

      public float lerpTargetHeadYaw()
    • tick

      public void tick()
      Overrides:
      tick in class Entity
    • lerpPositionAndRotationStep

      protected void lerpPositionAndRotationStep(int steps, double targetX, double targetY, double targetZ, double targetYaw, double targetPitch)
    • lerpHeadRotationStep

      protected void lerpHeadRotationStep(int lerpHeadSteps, double lerpHeadYaw)
    • getLerpSteps

      public int getLerpSteps()
    • getLerpX

      public double getLerpX()
    • getLerpY

      public double getLerpY()
    • getLerpZ

      public double getLerpZ()
    • getLerpYaw

      public double getLerpYaw()
    • getLerpPitch

      public double getLerpPitch()
    • getLerpHeadYaw

      public double getLerpHeadYaw()
    • getLerpHeadSteps

      public int getLerpHeadSteps()
    • getHealth

      public @Nullable Float getHealth()
    • getPotionEffectMap

      public Map<Effect, PotionEffect> getPotionEffectMap()
    • getEquipment

      public Map<EquipmentSlot, ItemStack> getEquipment()
    • setLerpSteps

      public EntityLiving setLerpSteps(int lerpSteps)
      Returns:
      this.
    • setLerpX

      public EntityLiving setLerpX(double lerpX)
      Returns:
      this.
    • setLerpY

      public EntityLiving setLerpY(double lerpY)
      Returns:
      this.
    • setLerpZ

      public EntityLiving setLerpZ(double lerpZ)
      Returns:
      this.
    • setLerpYaw

      public EntityLiving setLerpYaw(double lerpYaw)
      Returns:
      this.
    • setLerpPitch

      public EntityLiving setLerpPitch(double lerpPitch)
      Returns:
      this.
    • setLerpHeadYaw

      public EntityLiving setLerpHeadYaw(double lerpHeadYaw)
      Returns:
      this.
    • setLerpHeadSteps

      public EntityLiving setLerpHeadSteps(int lerpHeadSteps)
      Returns:
      this.
    • setHealth

      public EntityLiving setHealth(@Nullable Float health)
      Returns:
      this.
    • setPotionEffectMap

      public EntityLiving setPotionEffectMap(Map<Effect, PotionEffect> potionEffectMap)
      Returns:
      this.
    • setEquipment

      public EntityLiving setEquipment(Map<EquipmentSlot, ItemStack> equipment)
      Returns:
      this.
    • toString

      public String toString()
      Overrides:
      toString in class Entity
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Entity
    • canEqual

      protected boolean canEqual(Object other)
      Overrides:
      canEqual in class Entity
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Entity