Search in sources :

Example 1 with DropFromPlayerInventoryTransaction

use of org.spongepowered.common.event.tracking.context.transaction.inventory.DropFromPlayerInventoryTransaction in project SpongeCommon by SpongePowered.

the class TransactionSink method logDropFromPlayerInventory.

default EffectTransactor logDropFromPlayerInventory(final ServerPlayer player, final boolean dropAll) {
    final DropFromPlayerInventoryTransaction transaction = new DropFromPlayerInventoryTransaction(player, dropAll);
    this.logTransaction(transaction);
    return this.pushEffect(new ResultingTransactionBySideEffect(InventoryEffect.getInstance()));
}
Also used : DropFromPlayerInventoryTransaction(org.spongepowered.common.event.tracking.context.transaction.inventory.DropFromPlayerInventoryTransaction)

Aggregations

DropFromPlayerInventoryTransaction (org.spongepowered.common.event.tracking.context.transaction.inventory.DropFromPlayerInventoryTransaction)1