MoveTransaction

public class MoveTransaction

Class MoveTransaction. Provides movetransaction functionality for the Hytale server.

java.lang.Object > MoveTransaction

Field Summary

moveType

final MoveType moveType

Field moveType.

newAddTransaction

final T newAddTransaction

Field newAddTransaction.

newRemoveTransaction

final SlotTransaction newRemoveTransaction

Field newRemoveTransaction.

Method Detail

MoveTransaction

public public MoveTransaction (final boolean succeeded, @Nonnull final SlotTransaction removeTransaction, @Nonnull final MoveType moveType, @Nonnull final ItemContainer otherContainer, final T addTransaction)

Method MoveTransaction.

Parameters:
final boolean succeeded
@Nonnull final SlotTransaction removeTransaction
@Nonnull final MoveType moveType
@Nonnull final ItemContainer otherContainer
final T addTransaction

succeeded

public boolean succeeded ()

Method succeeded.

getRemoveTransaction

public SlotTransaction getRemoveTransaction ()

Method getRemoveTransaction.

getMoveType

public MoveType getMoveType ()

Method getMoveType.

getOtherContainer

public ItemContainer getOtherContainer ()

Method getOtherContainer.

getAddTransaction

public T getAddTransaction ()

Method getAddTransaction.

toInverted

public MoveTransaction toInverted (@Nonnull final ItemContainer itemContainer)

Method toInverted.

Parameters:
@Nonnull final ItemContainer itemContainer

wasSlotModified

public boolean wasSlotModified (final short slot)

Method wasSlotModified.

Parameters:
final short slot

toParent

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

Method toParent.

Parameters:
final ItemContainer parent
final short start
final ItemContainer container

switch

public return switch (moveType)

Method switch.

Parameters:
moveType moveType

fromParent

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

Method fromParent.

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

IllegalStateException

public new IllegalStateException ("Unexpected value: " + String.valueOf(moveType)

Method IllegalStateException.

Parameters:
"Unexpected value: " + String.valueOf(moveType

toString

public String toString ()

Method toString.