ClearTransaction

public class ClearTransaction implements Transaction

Class ClearTransaction. Provides cleartransaction functionality for the Hytale server.

java.lang.Object > ClearTransaction

Field Summary

newStart

final short newStart

Field newStart.

capacity

final short capacity

Field capacity.

from

final int from

Field from.

Method Detail

ClearTransaction

public public ClearTransaction (final boolean succeeded, final short start, @Nonnull final ItemStack[] items)

Method ClearTransaction.

Parameters:
final boolean succeeded
final short start
@Nonnull final ItemStack[] items

succeeded

public boolean succeeded ()

Method succeeded.

wasSlotModified

public boolean wasSlotModified (short slot)

Method wasSlotModified.

Parameters:
short slot

getItems

public ItemStack[] getItems ()

Method getItems.

toParent

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

Method toParent.

Parameters:
final ItemContainer parent
final short start
final ItemContainer container

fromParent

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