Package com.blamejared.clumps.api.events
Class ValueEvent
java.lang.Object
net.neoforged.bus.api.Event
com.blamejared.clumps.api.events.ValueEvent
- All Implemented Interfaces:
IValueEvent
-
Constructor Summary
Constructors -
Method Summary
-
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:
setValuein interfaceIValueEvent- Parameters:
value- The new value to set.
-
getValue
public int getValue()Gets the value of the experience orb.- Specified by:
getValuein interfaceIValueEvent- 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:
getPlayerin interfaceIValueEvent- Returns:
- The player the experience is being given to.
-