Class EntityPlayer


public class EntityPlayer extends EntityLiving
  • Field Details

    • selfPlayer

      protected boolean selfPlayer
    • food

      protected int food
    • saturation

      protected float saturation
    • totalExperience

      protected int totalExperience
    • level

      protected int level
    • experience

      protected float experience
  • Constructor Details

    • EntityPlayer

      public EntityPlayer()
    • EntityPlayer

      public EntityPlayer(boolean selfPlayer)
  • Method Details

    • updateAttributes

      public void updateAttributes(List<Attribute> attributes)
      Overrides:
      updateAttributes in class Entity
    • isAlive

      public boolean isAlive()
      Overrides:
      isAlive in class EntityLiving
    • addPackets

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

      public void tick()
      Overrides:
      tick in class EntityLiving
    • isSelfPlayer

      public boolean isSelfPlayer()
    • getFood

      public int getFood()
    • getSaturation

      public float getSaturation()
    • getTotalExperience

      public int getTotalExperience()
    • getLevel

      public int getLevel()
    • getExperience

      public float getExperience()
    • setSelfPlayer

      public EntityPlayer setSelfPlayer(boolean selfPlayer)
      Returns:
      this.
    • setFood

      public EntityPlayer setFood(int food)
      Returns:
      this.
    • setSaturation

      public EntityPlayer setSaturation(float saturation)
      Returns:
      this.
    • setTotalExperience

      public EntityPlayer setTotalExperience(int totalExperience)
      Returns:
      this.
    • setLevel

      public EntityPlayer setLevel(int level)
      Returns:
      this.
    • setExperience

      public EntityPlayer setExperience(float experience)
      Returns:
      this.
    • toString

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

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

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

      public int hashCode()
      Overrides:
      hashCode in class EntityLiving