Package net.neoforged.neoforge.event
Class GrindstoneEvent
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.event.GrindstoneEvent
- Direct Known Subclasses:
GrindstoneEvent.OnPlaceItem,GrindstoneEvent.OnTakeItem
public abstract class GrindstoneEvent
extends net.neoforged.bus.api.Event
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThis event isICancellableEvent
GrindstoneEvent.OnPlaceItemis fired when the inputs to a grindstone are changed.static classThis event isICancellableEvent
GrindstoneEvent.OnTakeItemis fired when the output in a grindstone are is taken. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
top
-
bottom
-
xp
private int xp
-
-
Constructor Details
-
GrindstoneEvent
-
-
Method Details
-
getTopItem
- Returns:
- The item in the top input grindstone slot.
-
getBottomItem
- Returns:
- The item in the bottom input grindstone slot.
-
getXp
public int getXp()- Returns:
- The experience amount given to the player.
-
setXp
public void setXp(int xp) Sets the experience amount.- Parameters:
xp- The experience amount given to the player.
-