public static final class InventoryTransactionResult.Builder extends Object implements ResettableBuilder<InventoryTransactionResult,InventoryTransactionResult.Builder>
Modifier and Type | Method and Description |
---|---|
InventoryTransactionResult |
build()
Creates a new
InventoryTransactionResult . |
InventoryTransactionResult.Builder |
from(InventoryTransactionResult value)
Resets this builder to the values of the given built object.
|
InventoryTransactionResult.Builder |
reject(ItemStack... itemStacks)
Adds the provided
itemstacks as stacks that have been
"rejected". |
InventoryTransactionResult.Builder |
replace(ItemStack... itemStacks)
Adds the provided
itemstacks as stacks that are
being replaced. |
InventoryTransactionResult.Builder |
reset()
Resets this builder to a "default" state such that there is no
remaining data to set.
|
InventoryTransactionResult.Builder |
type(InventoryTransactionResult.Type type)
Sets the
InventoryTransactionResult.Type of transaction result being built. |
public InventoryTransactionResult.Builder type(InventoryTransactionResult.Type type)
InventoryTransactionResult.Type
of transaction result being built.type
- The type of transaction resultpublic InventoryTransactionResult.Builder reject(ItemStack... itemStacks)
itemstacks
as stacks that have been
"rejected".itemStacks
- The itemstacks being rejectedpublic InventoryTransactionResult.Builder replace(ItemStack... itemStacks)
itemstacks
as stacks that are
being replaced.itemStacks
- The itemstacks being replacedpublic InventoryTransactionResult build()
InventoryTransactionResult
.public InventoryTransactionResult.Builder from(InventoryTransactionResult value)
ResettableBuilder
from
in interface ResettableBuilder<InventoryTransactionResult,InventoryTransactionResult.Builder>
value
- The built objectpublic InventoryTransactionResult.Builder reset()
ResettableBuilder
reset
in interface ResettableBuilder<InventoryTransactionResult,InventoryTransactionResult.Builder>