public class ResourceSlotTransaction extends SlotTransaction
Class ResourceSlotTransaction. Provides resourceslottransaction functionality for the Hytale server.
java.lang.Object > SlotTransaction > ResourceSlotTransaction
Field Summary
newSlot
final
short
newSlot
Field newSlot.
Method Detail
ResourceSlotTransaction
public
public
ResourceSlotTransaction
(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, @Nonnull final ResourceQuantity query, final int remainder, final int consumed)
Method ResourceSlotTransaction.
- Parameters:
final booleansucceeded@Nonnull final ActionTypeactionfinal shortslot@Nullable final ItemStackslotBefore@Nullable final ItemStackslotAfter@Nullable final ItemStackoutputfinal booleanallOrNothingfinal booleanexactAmountfinal booleanfilter@Nonnull final ResourceQuantityqueryfinal intremainderfinal intconsumed
getRemainder
public
int
getRemainder
()
Method getRemainder.
getConsumed
public
int
getConsumed
()
Method getConsumed.
toParent
public
ResourceSlotTransaction
toParent
(final ItemContainer parent, final short start, final ItemContainer container)
Method toParent.
- Parameters:
final ItemContainerparentfinal shortstartfinal ItemContainercontainer
fromParent
public
ResourceSlotTransaction
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.