Interface InventoryTransactionResult.Builder
-
- All Superinterfaces:
AbstractBuilder<InventoryTransactionResult>,Buildable.Builder<InventoryTransactionResult>,Builder<InventoryTransactionResult,InventoryTransactionResult.Builder>,CopyableBuilder<InventoryTransactionResult,InventoryTransactionResult.Builder>,ResettableBuilder<InventoryTransactionResult,InventoryTransactionResult.Builder>
- All Known Subinterfaces:
InventoryTransactionResult.Builder.PollBuilder
- Enclosing interface:
- InventoryTransactionResult
public static interface InventoryTransactionResult.Builder extends Builder<InventoryTransactionResult,InventoryTransactionResult.Builder>, CopyableBuilder<InventoryTransactionResult,InventoryTransactionResult.Builder>
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceInventoryTransactionResult.Builder.PollBuilder
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InventoryTransactionResultbuild()Creates a newInventoryTransactionResult.InventoryTransactionResult.Builder.PollBuilderpoll(ItemStackSnapshot itemStack)Sets the providedItemStackSnapshotas the stack that has been polled from the inventory.InventoryTransactionResult.Builderreject(java.lang.Iterable<ItemStackSnapshot> itemStacks)Adds the provideditemstacksas stacks that have been "rejected".InventoryTransactionResult.Builderreject(ItemStack... itemStacks)Adds the provideditemstacksas stacks that have been "rejected".InventoryTransactionResult.Buildertransaction(java.lang.Iterable<SlotTransaction> slotTransactions)Adds the provideditemstacksas stacks that are being replaced.InventoryTransactionResult.Buildertransaction(SlotTransaction... slotTransactions)Adds the provideditemstacksas stacks that are being replaced.InventoryTransactionResult.Buildertype(InventoryTransactionResult.Type type)Sets theInventoryTransactionResult.Typeof transaction result being built.-
Methods inherited from interface org.spongepowered.api.util.CopyableBuilder
from
-
-
-
-
Method Detail
-
type
InventoryTransactionResult.Builder type(InventoryTransactionResult.Type type)
Sets theInventoryTransactionResult.Typeof transaction result being built.- Parameters:
type- The type of transaction result- Returns:
- This builder, for chaining
-
reject
InventoryTransactionResult.Builder reject(ItemStack... itemStacks)
Adds the provideditemstacksas stacks that have been "rejected".- Parameters:
itemStacks- The itemstacks being rejected- Returns:
- This builder, for chaining
-
reject
InventoryTransactionResult.Builder reject(java.lang.Iterable<ItemStackSnapshot> itemStacks)
Adds the provideditemstacksas stacks that have been "rejected".- Parameters:
itemStacks- The itemstacks being rejected- Returns:
- This builder, for chaining
-
poll
InventoryTransactionResult.Builder.PollBuilder poll(ItemStackSnapshot itemStack)
Sets the providedItemStackSnapshotas the stack that has been polled from the inventory.- Parameters:
itemStack- The polled itemstack- Returns:
- This builder, for chaining
-
transaction
InventoryTransactionResult.Builder transaction(SlotTransaction... slotTransactions)
Adds the provideditemstacksas stacks that are being replaced.- Parameters:
slotTransactions- The slotTransactions- Returns:
- This builder, for chaining
-
transaction
InventoryTransactionResult.Builder transaction(java.lang.Iterable<SlotTransaction> slotTransactions)
Adds the provideditemstacksas stacks that are being replaced.- Parameters:
slotTransactions- The slotTransactions- Returns:
- This builder, for chaining
-
build
InventoryTransactionResult build()
Creates a newInventoryTransactionResult.- Specified by:
buildin interfaceAbstractBuilder<InventoryTransactionResult>- Specified by:
buildin interfaceBuildable.Builder<InventoryTransactionResult>- Returns:
- A new inventory transaction result
-
-