Class LivingEntityMeta

java.lang.Object
net.minestom.server.entity.metadata.EntityMeta
net.minestom.server.entity.metadata.LivingEntityMeta
Direct Known Subclasses:
ArmorStandMeta, MobMeta, PlayerMeta

public class LivingEntityMeta extends EntityMeta
  • Field Details

  • Constructor Details

    • LivingEntityMeta

      protected LivingEntityMeta(@NotNull @NotNull Entity entity, @NotNull @NotNull MetadataHolder metadata)
  • Method Details

    • isHandActive

      public boolean isHandActive()
    • setHandActive

      public void setHandActive(boolean value)
    • getActiveHand

      @NotNull public Player.Hand getActiveHand()
    • setActiveHand

      public void setActiveHand(@NotNull Player.Hand hand)
    • isInRiptideSpinAttack

      public boolean isInRiptideSpinAttack()
    • setInRiptideSpinAttack

      public void setInRiptideSpinAttack(boolean value)
    • getHealth

      public float getHealth()
    • setHealth

      public void setHealth(float value)
    • getEffectParticles

      @NotNull public @NotNull List<Particle> getEffectParticles()
    • setEffectParticles

      public void setEffectParticles(@NotNull @NotNull List<Particle> value)
    • isPotionEffectAmbient

      public boolean isPotionEffectAmbient()
    • setPotionEffectAmbient

      public void setPotionEffectAmbient(boolean value)
    • getArrowCount

      public int getArrowCount()
    • setArrowCount

      public void setArrowCount(int value)
    • getBeeStingerCount

      public int getBeeStingerCount()
      Gets the amount of bee stingers in this entity
      Returns:
      The amount of bee stingers
    • setBeeStingerCount

      public void setBeeStingerCount(int value)
      Sets the amount of bee stingers in this entity
      Parameters:
      value - The amount of bee stingers to set, use 0 to clear all stingers
    • getBedInWhichSleepingPosition

      @Nullable public @Nullable Point getBedInWhichSleepingPosition()
    • setBedInWhichSleepingPosition

      public void setBedInWhichSleepingPosition(@Nullable @Nullable Point value)