Class ItemStackTransaction

java.lang.Object
com.hypixel.hytale.server.core.inventory.transaction.ItemStackTransaction
All Implemented Interfaces:
Transaction

public class ItemStackTransaction extends Object implements Transaction
Since:
2020/01/29
Version:
1.0
  • Field Details

  • Constructor Details

  • Method Details

    • succeeded

      public boolean succeeded()
      Specified by:
      succeeded in interface Transaction
    • wasSlotModified

      public boolean wasSlotModified(short slot)
      Specified by:
      wasSlotModified in interface Transaction
    • getAction

      @Nullable public ActionType getAction()
    • getQuery

      @Nullable public ItemStack getQuery()
    • getRemainder

      @Nullable public ItemStack getRemainder()
    • isAllOrNothing

      public boolean isAllOrNothing()
    • isFilter

      public boolean isFilter()
    • getSlotTransactions

      @Nonnull public List<ItemStackSlotTransaction> getSlotTransactions()
    • toParent

      @Nonnull public ItemStackTransaction toParent(ItemContainer parent, short start, ItemContainer container)
      Description copied from interface: Transaction
      Transforms this transactions data from referencing about a slot in the provided container to a slot in the provided parent.
      Specified by:
      toParent in interface Transaction
      Returns:
      A transaction with data about the parent container.
    • fromParent

      @Nullable public ItemStackTransaction fromParent(ItemContainer parent, short start, @Nonnull ItemContainer container)
      Description copied from interface: Transaction
      Transforms this transactions data from referencing about a slot in the provided parent to a slot in the provided container.
      Specified by:
      fromParent in interface Transaction
      Returns:
      A transaction with data about the parent container or null if the transaction doesn't refer to the container at all.
    • toString

      @Nonnull public String toString()
      Overrides:
      toString in class Object