Interface LivingEntity

All Superinterfaces:
Entity, Sound.Emitter, Viewable
All Known Subinterfaces:
Animal, ArmorStand, Axolotl, Bat, Bee, Blaze, Camel, Cat, Chicken, Cod, Cow, Creeper, Dolphin, Donkey, Drowned, ElderGuardian, EnderDragon, Enderman, Endermite, Evoker, Fox, Frog, Ghast, Giant, Goat, Guardian, Hoglin, Horse, Husk, Illusioner, IronGolem, Llama, MagmaCube, Mob, Monster, Mooshroom, Mule, Ocelot, Panda, Parrot, Phantom, Pig, Piglin, PiglinBrute, Pillager, Player, PolarBear, Pufferfish, Rabbit, Raider, Ravager, Salmon, Sheep, Shulker, Silverfish, Skeleton, SkeletonHorse, Slime, Sniffer, SnowGolem, Spider, Squid, Stray, Strider, Tadpole, TraderLlama, TropicalFish, Turtle, Vex, Villager, Vindicator, WanderingTrader, Warden, Witch, Wither, WitherSkeleton, Wolf, Zoglin, Zombie, ZombieHorse, ZombieVillager, ZombifiedPiglin

public interface LivingEntity extends Entity
Represents a living entity.
  • Method Details

    • health

      float health()
      Gets the health of the entity.
      Returns:
      the health of this entity
      Since:
      1.0.0
    • health

      void health(float health)
      Sets the health of the entity.
      Parameters:
      health - the health to set
      Since:
      1.0.0
    • potionEffectColor

      int potionEffectColor()
      Gets the potion effect color of the entity.
      Returns:
      the potion effect color of the entity
      Since:
      1.0.0
    • potionEffectColor

      void potionEffectColor(int effectColor)
      Sets the potion effect color of the entity.
      Parameters:
      effectColor - the effect color to set
      Since:
      1.0.0
    • isPotionEffectAmbient

      boolean isPotionEffectAmbient()
      Gets whether the player has a potion effect ambient.
      Returns:
      whether the player has a potion effect ambient
      Since:
      1.0.0
    • potionEffectAmbient

      void potionEffectAmbient(boolean ambient)
      Sets whether the player has a potion effect ambient.
      Parameters:
      ambient - whether the player has a potion effect ambient
      Since:
      1.0.0
    • numberOfArrows

      int numberOfArrows()
      Gets the number of arrows in the entity.
      Returns:
      the number of arrows in the entity
      Since:
      1.0.0
    • numberOfArrows

      void numberOfArrows(int arrows)
      Sets the number of arrows in the entity.
      Parameters:
      arrows - the number of arrows
      Since:
      1.0.0
    • numberOfBeeStingers

      int numberOfBeeStingers()
      Gets the number of bee stingers in the entity.
      Returns:
      the number of bee stingers in the entity
      Since:
      1.0.0
    • numberOfBeeStingers

      void numberOfBeeStingers(int beeStingers)
      Sets the number of bee stingers in the entity.
      Parameters:
      beeStingers - the number of bee stingers
      Since:
      1.0.0
    • attribute

      @NotNull @NotNull AttributeValue attribute(@NotNull @NotNull Attribute attribute)
      Gets the attribute value by the attribute.
      Parameters:
      attribute - the attribute
      Returns:
      the value
      Since:
      1.0.0
    • equipment

      @NotNull @NotNull EntityEquipment equipment()
      Gets the equipment from the entity.
      Returns:
      the equipment