public class CraftingTransaction extends InventoryTransaction
| Modifier and Type | Field and Description |
|---|---|
protected int |
gridSize |
protected org.cloudburstmc.api.item.ItemStack[][] |
inputs |
protected org.cloudburstmc.api.item.ItemStack |
primaryOutput |
protected CraftingRecipe |
recipe |
protected org.cloudburstmc.api.item.ItemStack[][] |
secondaryOutputs |
actions, hasExecuted, inventories, source| Constructor and Description |
|---|
CraftingTransaction(CloudPlayer source,
List<InventoryAction> actions) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
callExecuteEvent() |
boolean |
canExecute() |
boolean |
execute() |
org.cloudburstmc.api.item.ItemStack[][] |
getInputMap() |
org.cloudburstmc.api.item.ItemStack |
getPrimaryOutput() |
CraftingRecipe |
getRecipe() |
protected void |
sendInventories() |
void |
setExtraOutput(int index,
org.cloudburstmc.api.item.ItemStack item) |
void |
setInput(int index,
org.cloudburstmc.api.item.ItemStack item) |
void |
setPrimaryOutput(org.cloudburstmc.api.item.ItemStack item) |
addAction, addInventory, getActions, getCreationTime, getInventories, getSource, hasExecuted, init, matchItems, squashDuplicateSlotChangesprotected int gridSize
protected org.cloudburstmc.api.item.ItemStack[][] inputs
protected org.cloudburstmc.api.item.ItemStack[][] secondaryOutputs
protected org.cloudburstmc.api.item.ItemStack primaryOutput
protected CraftingRecipe recipe
public CraftingTransaction(CloudPlayer source, List<InventoryAction> actions)
public void setInput(int index,
org.cloudburstmc.api.item.ItemStack item)
public org.cloudburstmc.api.item.ItemStack[][] getInputMap()
public void setExtraOutput(int index,
org.cloudburstmc.api.item.ItemStack item)
public org.cloudburstmc.api.item.ItemStack getPrimaryOutput()
public void setPrimaryOutput(org.cloudburstmc.api.item.ItemStack item)
public CraftingRecipe getRecipe()
public boolean canExecute()
canExecute in class InventoryTransactionprotected boolean callExecuteEvent()
callExecuteEvent in class InventoryTransactionprotected void sendInventories()
sendInventories in class InventoryTransactionpublic boolean execute()
execute in class InventoryTransactionCopyright © 2021. All rights reserved.