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 booleansucceeded@Nonnull final SlotTransactionremoveTransaction@Nonnull final MoveTypemoveType@Nonnull final ItemContainerotherContainerfinal TaddTransaction
succeeded
public
boolean
succeeded
()
Method succeeded.
getAddTransaction
public
T
getAddTransaction
()
Method getAddTransaction.
wasSlotModified
public
boolean
wasSlotModified
(final short slot)
Method wasSlotModified.
- Parameters:
final shortslot
toParent
public
MoveTransaction
toParent
(final ItemContainer parent, final short start, final ItemContainer container)
Method toParent.
- Parameters:
final ItemContainerparentfinal shortstartfinal ItemContainercontainer
switch
public
return
switch
(moveType)
Method switch.
- Parameters:
moveTypemoveType
fromParent
public
MoveTransaction
fromParent
(final ItemContainer parent, final short start, @Nonnull final ItemContainer container)
Method fromParent.
- Parameters:
final ItemContainerparentfinal shortstart@Nonnull final ItemContainercontainer
IllegalStateException
public
new
IllegalStateException
("Unexpected value: " + String.valueOf(moveType)
Method IllegalStateException.
- Parameters:
"Unexpected value: " +String.valueOf(moveType
toString
public
String
toString
()
Method toString.