public class CraftingTakeResultAction extends InventoryAction
sourceItem, targetItem| Constructor and Description |
|---|
CraftingTakeResultAction(Item sourceItem,
Item targetItem) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
execute(Player source)
Performs actions needed to complete the inventory-action server-side.
|
boolean |
isValid(Player source)
Returns whether this action is currently valid.
|
void |
onAddToTransaction(InventoryTransaction transaction)
Called when the action is added to the specified InventoryTransaction.
|
void |
onExecuteFail(Player source)
Performs additional actions when this inventory-action did not complete successfully.
|
void |
onExecuteSuccess(Player $source)
Performs additional actions when this inventory-action completed successfully.
|
getCreationTime, getSourceItem, getTargetItem, onPreExecutepublic void onAddToTransaction(InventoryTransaction transaction)
InventoryActiononAddToTransaction in class InventoryActiontransaction - to addpublic boolean isValid(Player source)
InventoryActionisValid in class InventoryActionsource - playerpublic boolean execute(Player source)
InventoryActionexecute in class InventoryActionsource - playerpublic void onExecuteSuccess(Player $source)
InventoryActiononExecuteSuccess in class InventoryAction$source - playerpublic void onExecuteFail(Player source)
InventoryActiononExecuteFail in class InventoryActionsource - playerCopyright © 2020. All rights reserved.