Class ItemStackTransaction
java.lang.Object
com.hypixel.hytale.server.core.inventory.transaction.ItemStackTransaction
- All Implemented Interfaces:
Transaction
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ActionTypeprivate final booleanstatic final ItemStackTransactionprivate final booleanprivate final ItemStackprivate final ItemStackprivate final List<ItemStackSlotTransaction> private final boolean -
Constructor Summary
ConstructorsConstructorDescriptionItemStackTransaction(boolean succeeded, ActionType action, ItemStack query, ItemStack remainder, boolean allOrNothing, boolean filter, List<ItemStackSlotTransaction> slotTransactions) -
Method Summary
Modifier and TypeMethodDescriptionfromParent(ItemContainer parent, short start, ItemContainer container) getQuery()booleanbooleanisFilter()booleantoParent(ItemContainer parent, short start, ItemContainer container) toString()booleanwasSlotModified(short slot)
-
Field Details
-
FAILED_ADD
-
succeeded
private final boolean succeeded -
action
-
query
-
remainder
-
allOrNothing
private final boolean allOrNothing -
filter
private final boolean filter -
slotTransactions
-
-
Constructor Details
-
ItemStackTransaction
public ItemStackTransaction(boolean succeeded, @Nullable ActionType action, @Nullable ItemStack query, @Nullable ItemStack remainder, boolean allOrNothing, boolean filter, @Nonnull List<ItemStackSlotTransaction> slotTransactions)
-
-
Method Details
-
succeeded
public boolean succeeded()- Specified by:
succeededin interfaceTransaction
-
wasSlotModified
public boolean wasSlotModified(short slot) - Specified by:
wasSlotModifiedin interfaceTransaction
-
getAction
-
getQuery
-
getRemainder
-
isAllOrNothing
public boolean isAllOrNothing() -
isFilter
public boolean isFilter() -
getSlotTransactions
-
toParent
@Nonnull public ItemStackTransaction toParent(ItemContainer parent, short start, ItemContainer container) - Specified by:
toParentin interfaceTransaction
-
fromParent
@Nullable public ItemStackTransaction fromParent(ItemContainer parent, short start, @Nonnull ItemContainer container) - Specified by:
fromParentin interfaceTransaction
-
toString
-