Interface ExperienceOrb

All Superinterfaces:
Entity

public interface ExperienceOrb extends Entity
  • Field Details

    • ORB_SPLIT_SIZES

      static final com.google.common.collect.ImmutableList<Integer> ORB_SPLIT_SIZES
      Split sizes used for dropping experience orbs.
  • Method Details

    • getMaxOrbSize

      static int getMaxOrbSize(int amount)
      Returns the largest size of normal XP orb that will be spawned for the specified amount of XP. Used to split XP up into multiple orbs when an amount of XP is dropped.
    • splitIntoOrbSizes

      static List<Integer> splitIntoOrbSizes(int amount)
      Splits the specified amount of XP into an array of acceptable XP orb sizes.
    • getExperience

      @org.checkerframework.checker.index.qual.NonNegative int getExperience()
    • setExperience

      void setExperience(@org.checkerframework.checker.index.qual.NonNegative int experience)
    • getPickupDelay

      @org.checkerframework.checker.index.qual.NonNegative int getPickupDelay()
    • setPickupDelay

      void setPickupDelay(@org.checkerframework.checker.index.qual.NonNegative int pickupDelay)