类 GrindstoneEvent.OnTakeItem
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.GrindstoneEvent
net.minecraftforge.event.GrindstoneEvent.OnTakeItem
- 封闭类:
GrindstoneEvent
This event is
It is called from
If the event is canceled, vanilla behavior will not run, and no inputs will be consumed.
if the amount of experience is larger than or equal 0, the vanilla behavior for calculating experience will not run.
Cancelable
GrindstoneEvent.OnTakeItem
is fired when the output in a grindstone are is taken. It is called from
GrindstoneMenu(int, Inventory)
. If the event is canceled, vanilla behavior will not run, and no inputs will be consumed.
if the amount of experience is larger than or equal 0, the vanilla behavior for calculating experience will not run.
-
嵌套类概要
从类继承的嵌套类/接口 net.minecraftforge.event.GrindstoneEvent
GrindstoneEvent.OnPlaceItem, GrindstoneEvent.OnTakeItem
从类继承的嵌套类/接口 net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明int
getXp()
This is the experience amount that will be returned by the event.void
setNewBottomItem
(ItemStack newBottom) Sets the itemstack in the bottom slot.void
setNewTopItem
(ItemStack newTop) Sets the itemstack in the top slot.从类继承的方法 net.minecraftforge.event.GrindstoneEvent
getBottomItem, getTopItem, setXp
从类继承的方法 net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
字段详细资料
-
newTop
-
newBottom
-
-
构造器详细资料
-
OnTakeItem
-
-
方法详细资料
-
getNewTopItem
- 返回:
- The item in that will be in the top input grindstone slot after the event.
-
getNewBottomItem
- 返回:
- The item in that will be in the bottom input grindstone slot after the event.
-
setNewTopItem
Sets the itemstack in the top slot.- 参数:
newTop
-
-
setNewBottomItem
Sets the itemstack in the bottom slot.- 参数:
newBottom
-
-
getXp
public int getXp()This is the experience amount that will be returned by the event.- 覆盖:
getXp
在类中GrindstoneEvent
- 返回:
- The experience amount given to the player.
-