Interface InventoryTransactionResult.Builder
- All Superinterfaces:
- AbstractBuilder<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 SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic interface
- 
Method SummaryModifier and TypeMethodDescriptionbuild()Creates a newInventoryTransactionResult.poll(ItemStackLike itemStack) Sets the providedItemStackLikeas the stack that has been polled from the inventory.reject(Iterable<? extends ItemStackLike> itemStacks) Adds the provideditemstacksas stacks that have been "rejected".reject(ItemStackLike... itemStacks) Adds the provideditemstacksas stacks that have been "rejected".transaction(Iterable<SlotTransaction> slotTransactions) Adds the provideditemstacksas stacks that are being replaced.transaction(SlotTransaction... slotTransactions) Adds the provideditemstacksas stacks that are being replaced.Sets theInventoryTransactionResult.Typeof transaction result being built.Methods inherited from interface org.spongepowered.api.util.CopyableBuilderfrom
- 
Method Details- 
typeSets theInventoryTransactionResult.Typeof transaction result being built.- Parameters:
- type- The type of transaction result
- Returns:
- This builder, for chaining
 
- 
rejectAdds the provideditemstacksas stacks that have been "rejected".- Parameters:
- itemStacks- The itemstacks being rejected
- Returns:
- This builder, for chaining
 
- 
rejectAdds the provideditemstacksas stacks that have been "rejected".- Parameters:
- itemStacks- The itemstacks being rejected
- Returns:
- This builder, for chaining
 
- 
pollSets the providedItemStackLikeas the stack that has been polled from the inventory.- Parameters:
- itemStack- The polled itemstack
- Returns:
- This builder, for chaining
 
- 
transactionAdds the provideditemstacksas stacks that are being replaced.- Parameters:
- slotTransactions- The slotTransactions
- Returns:
- This builder, for chaining
 
- 
transactionAdds the provideditemstacksas stacks that are being replaced.- Parameters:
- slotTransactions- The slotTransactions
- Returns:
- This builder, for chaining
 
- 
buildInventoryTransactionResult build()Creates a newInventoryTransactionResult.- Specified by:
- buildin interface- AbstractBuilder<InventoryTransactionResult>
- Returns:
- A new inventory transaction result
 
 
-