use of org.spongepowered.mod.item.inventory.fabric.IItemHandlerFabric in project SpongeForge by SpongePowered.
the class MixinInvWrapper method init.
private void init() {
if (!initalized) {
initalized = true;
this.fabric = new IItemHandlerFabric(((InvWrapper) (Object) this));
this.slots = new SlotCollection.Builder().add(this.fabric.getSize()).build();
this.lens = new OrderedInventoryLensImpl(0, this.fabric.getSize(), 1, slots);
}
}
use of org.spongepowered.mod.item.inventory.fabric.IItemHandlerFabric in project SpongeForge by SpongePowered.
the class MixinItemStackHandler method init.
private void init() {
if (!initalized) {
initalized = true;
this.fabric = new IItemHandlerFabric(((ItemStackHandler) (Object) this));
this.slots = new SlotCollection.Builder().add(this.fabric.getSize()).build();
this.lens = new OrderedInventoryLensImpl(0, this.fabric.getSize(), 1, slots);
}
}
Aggregations