Class MoveTransaction<T extends Transaction>
java.lang.Object
com.hypixel.hytale.server.core.inventory.transaction.MoveTransaction<T>
- All Implemented Interfaces:
Transaction
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Tprivate final MoveTypeprivate final ItemContainerprivate final SlotTransactionprivate final boolean -
Constructor Summary
ConstructorsConstructorDescriptionMoveTransaction(boolean succeeded, SlotTransaction removeTransaction, MoveType moveType, ItemContainer otherContainer, T addTransaction) -
Method Summary
Modifier and TypeMethodDescriptionfromParent(ItemContainer parent, short start, ItemContainer container) booleantoInverted(ItemContainer itemContainer) toParent(ItemContainer parent, short start, ItemContainer container) toString()booleanwasSlotModified(short slot)
-
Field Details
-
succeeded
private final boolean succeeded -
removeTransaction
-
moveType
-
otherContainer
-
addTransaction
-
-
Constructor Details
-
MoveTransaction
public MoveTransaction(boolean succeeded, @Nonnull SlotTransaction removeTransaction, @Nonnull MoveType moveType, @Nonnull ItemContainer otherContainer, T addTransaction)
-
-
Method Details
-
succeeded
public boolean succeeded()- Specified by:
succeededin interfaceTransaction
-
getRemoveTransaction
-
getMoveType
-
getOtherContainer
-
getAddTransaction
-
toInverted
-
wasSlotModified
public boolean wasSlotModified(short slot) - Specified by:
wasSlotModifiedin interfaceTransaction
-
toParent
@Nonnull public MoveTransaction<T> toParent(ItemContainer parent, short start, ItemContainer container) - Specified by:
toParentin interfaceTransaction
-
fromParent
@Nullable public MoveTransaction<T> fromParent(ItemContainer parent, short start, @Nonnull ItemContainer container) - Specified by:
fromParentin interfaceTransaction
-
toString
-