类 CraftingTransaction
java.lang.Object
cn.nukkit.inventory.transaction.InventoryTransaction
cn.nukkit.inventory.transaction.CraftingTransaction
- 作者:
- CreeperFace
-
字段概要
从类继承的字段 cn.nukkit.inventory.transaction.InventoryTransaction
actions, hasExecuted, inventories, source
-
构造器概要
-
方法概要
修饰符和类型方法说明protected boolean
boolean
boolean
checkForCraftingPart
(List<InventoryAction> actions) boolean
execute()
已过时。boolean
protected void
void
setExtraOutput
(Item item) void
void
setPrimaryOutput
(Item item) void
setReadyToExecute
(boolean readyToExecute) protected void
setTransactionRecipe
(Recipe recipe) 从类继承的方法 cn.nukkit.inventory.transaction.InventoryTransaction
addAction, addInventory, getActionList, getActions, getCreationTime, getInventories, getSource, hasExecuted, init, matchItems
-
字段详细资料
-
gridSize
protected int gridSize -
inputs
-
secondaryOutputs
-
-
recipe
@Deprecated @DeprecationDetails(since="FUTURE", reason="When the recipe is not a CraftingRecipe, this is set to null instead of the recipe", by="PowerNukkit", replaceWith="getTransactionRecipe()") @Nullable @Since("FUTURE") protected CraftingRecipe recipe已过时。 -
craftingType
-
-
构造器详细资料
-
CraftingTransaction
-
-
方法详细资料
-
setInput
-
getInputList
-
setExtraOutput
-
getPrimaryOutput
-
setPrimaryOutput
-
getRecipe
@Deprecated @DeprecationDetails(since="FUTURE", reason="When the recipe is not a CraftingRecipe, returns null instead of the recipe", by="PowerNukkit", replaceWith="getTransactionRecipe()") @Since("FUTURE") @Nullable public CraftingRecipe getRecipe()已过时。 -
getTransactionRecipe
-
setTransactionRecipe
-
canExecute
public boolean canExecute()- 覆盖:
canExecute
在类中InventoryTransaction
-
callExecuteEvent
protected boolean callExecuteEvent()- 覆盖:
callExecuteEvent
在类中InventoryTransaction
-
sendInventories
@PowerNukkitDifference(since="1.4.0.0-PN", info="No longer closes the inventory") protected void sendInventories()- 覆盖:
sendInventories
在类中InventoryTransaction
-
execute
public boolean execute()- 覆盖:
execute
在类中InventoryTransaction
-
checkForCraftingPart
-
setReadyToExecute
-
isReadyToExecute
-