Package net.minecraftforge.event
Class GrindstoneEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.GrindstoneEvent
- Direct Known Subclasses:
 GrindstoneEvent.OnplaceItem,GrindstoneEvent.OnTakeItem
public abstract class GrindstoneEvent
extends net.minecraftforge.eventbus.api.Event
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThis event isCancelable
GrindstoneEvent.OnplaceItemis fired when the inputs to a grindstone are changed.static classThis event isCancelable
GrindstoneEvent.OnTakeItemis fired when the output in a grindstone are is taken.Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result - 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult 
- 
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.
 
 -