Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

Implement Inventory Transfer Events #1603

Merged
merged 1 commit into from Nov 1, 2017
Merged

Conversation

Faithcaio
Copy link
Contributor

@Faithcaio Faithcaio commented Jun 25, 2017

SpongeAPI | SpongeCommon | SpongeForge | Issue

  • handle Forges IItemHandler when they are not an IInventory/SpongeAPI-Inventory


@Override
public Inventory parent() {
return this.parent == null ? this : this.parent();
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

return this.parent == null ? this : this.parent;

private Fabric<ItemStackHandler> fabric;
protected Lens<IInventory, ItemStack> lens = null;

public List<SlotTransaction> capturedTransactions = new ArrayList<>();
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why public?

@Faithcaio Faithcaio force-pushed the feature/transferevent branch 4 times, most recently from b73031c to c767b8d Compare November 1, 2017 16:28
Add support for Forge Inventories extending ItemStackHandler or InvWrapper
@Faithcaio Faithcaio merged commit b887130 into bleeding Nov 1, 2017
@Faithcaio Faithcaio deleted the feature/transferevent branch November 1, 2017 16:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants