Class ValueEvent

java.lang.Object
net.neoforged.bus.api.Event
com.blamejared.clumps.api.events.ValueEvent
All Implemented Interfaces:
IValueEvent

public class ValueEvent extends net.neoforged.bus.api.Event implements IValueEvent
  • Constructor Summary

    Constructors
    Constructor
    Description
    ValueEvent(net.minecraft.world.entity.player.Player player, int value)
     
  • 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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ValueEvent

      public ValueEvent(net.minecraft.world.entity.player.Player player, int value)
  • Method Details

    • setValue

      public void setValue(int value)
      Sets the value of the experience orb.
      Specified by:
      setValue in interface IValueEvent
      Parameters:
      value - The new value to set.
    • getValue

      public int getValue()
      Gets the value of the experience orb.
      Specified by:
      getValue in interface IValueEvent
      Returns:
      The value of the experience orb.
    • getPlayer

      public net.minecraft.world.entity.player.Player getPlayer()
      Gets the player that the experience is being given to.
      Specified by:
      getPlayer in interface IValueEvent
      Returns:
      The player the experience is being given to.