Search in sources :

Example 1 with CraftInventoryLoom

use of org.bukkit.craftbukkit.v.inventory.CraftInventoryLoom in project Arclight by IzzelAliz.

the class LoomContainerMixin method getBukkitView.

@Override
public CraftInventoryView getBukkitView() {
    if (bukkitEntity != null) {
        return bukkitEntity;
    }
    CraftInventoryLoom inventory = new CraftInventoryLoom(this.inputInventory, this.outputInventory);
    bukkitEntity = new CraftInventoryView(((PlayerEntityBridge) this.playerInventory.player).bridge$getBukkitEntity(), inventory, (Container) (Object) this);
    return bukkitEntity;
}
Also used : Container(net.minecraft.inventory.container.Container) LoomContainer(net.minecraft.inventory.container.LoomContainer) CraftInventoryView(org.bukkit.craftbukkit.v.inventory.CraftInventoryView) PlayerEntityBridge(io.izzel.arclight.common.bridge.entity.player.PlayerEntityBridge) CraftInventoryLoom(org.bukkit.craftbukkit.v.inventory.CraftInventoryLoom)

Aggregations

PlayerEntityBridge (io.izzel.arclight.common.bridge.entity.player.PlayerEntityBridge)1 Container (net.minecraft.inventory.container.Container)1 LoomContainer (net.minecraft.inventory.container.LoomContainer)1 CraftInventoryLoom (org.bukkit.craftbukkit.v.inventory.CraftInventoryLoom)1 CraftInventoryView (org.bukkit.craftbukkit.v.inventory.CraftInventoryView)1