public class SlotTransaction implements Transaction
Class SlotTransaction. Provides slottransaction functionality for the Hytale server.
java.lang.Object > SlotTransaction
Field Summary
newSlot
final
short
newSlot
Field newSlot.
Method Detail
SlotTransaction
public
public
SlotTransaction
(final boolean succeeded, @Nonnull final ActionType action, final short slot, @Nullable final ItemStack slotBefore, @Nullable final ItemStack slotAfter, @Nullable final ItemStack output, final boolean allOrNothing, final boolean exactAmount, final boolean filter)
Method SlotTransaction.
- Parameters:
final booleansucceeded@Nonnull final ActionTypeactionfinal shortslot@Nullable final ItemStackslotBefore@Nullable final ItemStackslotAfter@Nullable final ItemStackoutputfinal booleanallOrNothingfinal booleanexactAmountfinal booleanfilter
succeeded
public
boolean
succeeded
()
Method succeeded.
wasSlotModified
public
boolean
wasSlotModified
(final short slot)
Method wasSlotModified.
- Parameters:
final shortslot
getSlot
public
short
getSlot
()
Method getSlot.
isAllOrNothing
public
boolean
isAllOrNothing
()
Method isAllOrNothing.
isExactAmount
public
boolean
isExactAmount
()
Method isExactAmount.
isFilter
public
boolean
isFilter
()
Method isFilter.
toParent
public
SlotTransaction
toParent
(final ItemContainer parent, final short start, final ItemContainer container)
Method toParent.
- Parameters:
final ItemContainerparentfinal shortstartfinal ItemContainercontainer
fromParent
public
SlotTransaction
fromParent
(final ItemContainer parent, final short start, @Nonnull final ItemContainer container)
Method fromParent.
- Parameters:
final ItemContainerparentfinal shortstart@Nonnull final ItemContainercontainer
toString
public
String
toString
()
Method toString.