类 GrindstoneEvent
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.event.GrindstoneEvent
public abstract class GrindstoneEvent
extends net.neoforged.bus.api.Event
-
嵌套类概要
嵌套类修饰符和类型类说明static class
This event isICancellableEvent
GrindstoneEvent.OnPlaceItem
is fired when the inputs to a grindstone are changed.static class
This event isICancellableEvent
GrindstoneEvent.OnTakeItem
is fired when the output in a grindstone are is taken. -
字段概要
字段 -
构造器概要
构造器 -
方法概要
-
字段详细资料
-
top
-
bottom
-
xp
private int xp
-
-
构造器详细资料
-
GrindstoneEvent
-
-
方法详细资料
-
getTopItem
- 返回:
- The item in the top input grindstone slot.
-
getBottomItem
- 返回:
- The item in the bottom input grindstone slot.
-
getXp
public int getXp()- 返回:
- The experience amount given to the player.
-
setXp
public void setXp(int xp) Sets the experience amount.- 参数:
xp
- The experience amount given to the player.
-