public final class InventoryTransactionResult extends Object
Modifier and Type | Class and Description |
---|---|
static class |
InventoryTransactionResult.Builder |
static class |
InventoryTransactionResult.Type |
Modifier and Type | Method and Description |
---|---|
static InventoryTransactionResult.Builder |
builder()
Begin building a new InventoryTransactionResult.
|
static InventoryTransactionResult |
failNoTransactions()
Returns a builder which indicates that the transaction failed, and the
transaction result was no-op.
|
Collection<ItemStackSnapshot> |
getRejectedItems()
If items were supplied to the operation, this collection will return any
items which were rejected by the target inventory.
|
Collection<ItemStackSnapshot> |
getReplacedItems()
If the operation replaced items in the inventory, this collection returns
the ItemStacks which were replaced.
|
InventoryTransactionResult.Type |
getType()
Gets the type of result.
|
static InventoryTransactionResult |
successNoTransactions()
Returns a builder which indicates that the transaction succeeded, but the
transaction result was no-op.
|
public static InventoryTransactionResult.Builder builder()
public static InventoryTransactionResult successNoTransactions()
public static InventoryTransactionResult failNoTransactions()
public InventoryTransactionResult.Type getType()
public Collection<ItemStackSnapshot> getRejectedItems()
public Collection<ItemStackSnapshot> getReplacedItems()