Class ExperienceOrb

java.lang.Object
net.minestom.server.entity.Entity
net.minestom.server.entity.ExperienceOrb
All Implemented Interfaces:
Sound.Emitter, HoverEventSource<HoverEvent.ShowEntity>, Shape, EventHandler<EntityEvent>, PermissionHandler, Snapshotable, Taggable, TagReadable, TagWritable, Tickable, Schedulable, Viewable

public class ExperienceOrb extends Entity
  • Constructor Details

    • ExperienceOrb

      public ExperienceOrb(short experienceCount)
  • Method Details

    • update

      public void update(long time)
      Description copied from class: Entity
      Called each tick.
      Overrides:
      update in class Entity
      Parameters:
      time - time of the update in milliseconds
    • spawn

      public void spawn()
      Description copied from class: Entity
      Called when a new instance is set.
      Overrides:
      spawn in class Entity
    • getExperienceCount

      public short getExperienceCount()
      Gets the experience count.
      Returns:
      the experience count
    • setExperienceCount

      public void setExperienceCount(short experienceCount)
      Changes the experience count.
      Parameters:
      experienceCount - the new experience count