@ParametersAreNonnullByDefault public abstract class InventoryTransaction extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
addAction(com.nukkitx.protocol.bedrock.data.InventoryAction action) |
InventoryTransactionResult |
execute(PlayerSession player,
boolean ignoreChecks) |
List<com.nukkitx.protocol.bedrock.data.InventoryAction> |
getActions() |
int |
getSourceCount() |
List<com.nukkitx.protocol.bedrock.data.InventoryAction> |
getSources(com.nukkitx.protocol.bedrock.data.InventorySource source) |
InventoryTransactionResult |
handle(PlayerSession player,
boolean ignoreChecks) |
void |
onTransactionError(PlayerSession player,
InventoryTransactionResult result) |
InventoryTransactionResult |
verify(PlayerSession player,
boolean ignoreChecks) |
boolean |
verifyBalance() |
public void addAction(@Nonnull com.nukkitx.protocol.bedrock.data.InventoryAction action)
public int getSourceCount()
public List<com.nukkitx.protocol.bedrock.data.InventoryAction> getSources(@Nonnull com.nukkitx.protocol.bedrock.data.InventorySource source)
public boolean verifyBalance()
public InventoryTransactionResult verify(PlayerSession player, boolean ignoreChecks)
public InventoryTransactionResult execute(PlayerSession player, boolean ignoreChecks)
public void onTransactionError(PlayerSession player, InventoryTransactionResult result)
public InventoryTransactionResult handle(PlayerSession player, boolean ignoreChecks)
public List<com.nukkitx.protocol.bedrock.data.InventoryAction> getActions()
Copyright © 2017–2020 NukkitX. All rights reserved.