Class TransactionManager
java.lang.Object
zombie.core.TransactionManager
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TransactionManagerstatic final bytestatic final bytestatic final byte -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidadd(Transaction transaction) static voidcancelAllRelevantToUser(IsoPlayer player) static bytechangeItemTypeTransaction(IsoPlayer player, InventoryItem item, ItemContainer source, ItemContainer destination, String extra) static bytecreateItemTransaction(IsoPlayer player, InventoryItem item, ItemContainer source, ItemContainer destination) static bytecreateItemTransaction(IsoPlayer player, InventoryItem item, ItemContainer source, ItemContainer destination, IsoDirections direction, float posX, float posY, float posZ) static intgetDuration(byte id) getLightweightData(IsoPlayer player) static byteisConsistent(int itemId, InventoryItem worldItem, ItemContainer source, ItemContainer destination, String extra, ItemTransactionPacket dropTransaction) static booleanisDone(byte id) static booleanisRejected(byte id) static voidremoveItemTransaction(byte id, boolean isCanceled) voidstatic voidupdate()
-
Field Details
-
success
public static final byte success- See Also:
-
reject
public static final byte reject- See Also:
-
invalid
public static final byte invalid- See Also:
-
instance
-
-
Constructor Details
-
TransactionManager
public TransactionManager()
-
-
Method Details
-
add
-
getLightweightData
-
update
public static void update() -
isConsistent
public static byte isConsistent(int itemId, InventoryItem worldItem, ItemContainer source, ItemContainer destination, String extra, ItemTransactionPacket dropTransaction) -
isRejected
public static boolean isRejected(byte id) -
isDone
public static boolean isDone(byte id) -
cancelAllRelevantToUser
-
getDuration
public static int getDuration(byte id) -
createItemTransaction
public static byte createItemTransaction(IsoPlayer player, InventoryItem item, ItemContainer source, ItemContainer destination) -
createItemTransaction
public static byte createItemTransaction(IsoPlayer player, InventoryItem item, ItemContainer source, ItemContainer destination, IsoDirections direction, float posX, float posY, float posZ) -
changeItemTypeTransaction
public static byte changeItemTypeTransaction(IsoPlayer player, InventoryItem item, ItemContainer source, ItemContainer destination, String extra) -
removeItemTransaction
public static void removeItemTransaction(byte id, boolean isCanceled) -
setStateFromPacket
-