use of org.spongepowered.common.event.tracking.context.transaction.inventory.PlayerInventoryTransaction in project SpongeCommon by SpongePowered.
the class TransactionSink method logPlayerInventoryChangeWithEffect.
default EffectTransactor logPlayerInventoryChangeWithEffect(final Player player, final PlayerInventoryTransaction.EventCreator eventCreator) {
final PlayerInventoryTransaction transaction = new PlayerInventoryTransaction(player, eventCreator);
this.logTransaction(transaction);
return this.pushEffect(new ResultingTransactionBySideEffect(InventoryEffect.getInstance()));
}
use of org.spongepowered.common.event.tracking.context.transaction.inventory.PlayerInventoryTransaction in project SpongeCommon by SpongePowered.
the class TransactionSink method logPlayerInventoryChange.
default void logPlayerInventoryChange(final Player player, final PlayerInventoryTransaction.EventCreator eventCreator) {
final PlayerInventoryTransaction transaction = new PlayerInventoryTransaction(player, eventCreator);
this.logTransaction(transaction);
}
Aggregations