ItemStackTransaction

public class ItemStackTransaction implements Transaction

Class ItemStackTransaction. Provides itemstacktransaction functionality for the Hytale server.

java.lang.Object > ItemStackTransaction

Field Summary

slotTransactions

final List slotTransactions

Field slotTransactions.

iterator

final Iterator iterator

Field iterator.

Method Detail

ItemStackTransaction

public public ItemStackTransaction (final boolean succeeded, @Nullable final ActionType action, @Nullable final ItemStack query, @Nullable final ItemStack remainder, final boolean allOrNothing, final boolean filter, @Nonnull final List slotTransactions)

Method ItemStackTransaction.

Parameters:
final boolean succeeded
@Nullable final ActionType action
@Nullable final ItemStack query
@Nullable final ItemStack remainder
final boolean allOrNothing
final boolean filter
@Nonnull final List slotTransactions

succeeded

public boolean succeeded ()

Method succeeded.

wasSlotModified

public boolean wasSlotModified (final short slot)

Method wasSlotModified.

Parameters:
final short slot

getAction

public ActionType getAction ()

Method getAction.

getQuery

public ItemStack getQuery ()

Method getQuery.

getRemainder

public ItemStack getRemainder ()

Method getRemainder.

isAllOrNothing

public boolean isAllOrNothing ()

Method isAllOrNothing.

isFilter

public boolean isFilter ()

Method isFilter.

getSlotTransactions

public List getSlotTransactions ()

Method getSlotTransactions.

toParent

public ItemStackTransaction toParent (final ItemContainer parent, final short start, final ItemContainer container)

Method toParent.

Parameters:
final ItemContainer parent
final short start
final ItemContainer container

fromParent

public ItemStackTransaction 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.