ResourceSlotTransaction

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 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

getQuery

public ResourceQuantity getQuery ()

Method getQuery.

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 ItemContainer parent
final short start
final ItemContainer container

fromParent

public ResourceSlotTransaction fromParent (final ItemContainer parent, final short start, @Nonnull final ItemContainer container)

Method fromParent.

Parameters:
final ItemContainer parent
final short start
@Nonnull final ItemContainer container

toString

public String toString ()

Method toString.