Package com.blamejared.clumps.api.events
Class ValueEvent
java.lang.Object
net.minecraftforge.eventbus.internal.MutableEventInternals
net.minecraftforge.eventbus.api.event.MutableEvent
com.blamejared.clumps.api.events.ValueEvent
- All Implemented Interfaces:
IValueEvent,net.minecraftforge.eventbus.internal.Event
public class ValueEvent
extends net.minecraftforge.eventbus.api.event.MutableEvent
implements IValueEvent
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraftforge.eventbus.api.bus.EventBus<ValueEvent> Fields inherited from class net.minecraftforge.eventbus.internal.MutableEventInternals
isMonitoring -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
BUS
-
-
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.
-