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()));
}
Aggregations