Interface IValueEvent

All Known Implementing Classes:
ValueEvent

public interface IValueEvent
Used to mutate the value of experience before repairing player's items and giving the rest to the player. **NOTE** This mutates the actual value of the experience orb, it is fired once per *value*, not per orb inside the clumped orb. For example, given the orb: {5: 10}, which is an orb that has clumped 10 other orbs who had the value of 5, this even will fire once if this event is used to change that 5 to a 7, the orb will *effectively* turn into {7: 10}
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.entity.player.Player
    Gets the player that the experience is being given to.
    int
    Gets the value of the experience orb.
    void
    setValue(int value)
    Sets the value of the experience orb.
  • Method Details

    • setValue

      void setValue(int value)
      Sets the value of the experience orb.
      Parameters:
      value - The new value to set.
    • getValue

      int getValue()
      Gets the value of the experience orb.
      Returns:
      The value of the experience orb.
    • getPlayer

      net.minecraft.world.entity.player.Player getPlayer()
      Gets the player that the experience is being given to.
      Returns:
      The player the experience is being given to.