Search in sources :

Example 1 with CraftInventoryAnvil

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

the class RepairContainerMixin method getBukkitView.

@Override
public CraftInventoryView getBukkitView() {
    if (bukkitEntity != null) {
        return bukkitEntity;
    }
    CraftInventory inventory = new CraftInventoryAnvil(((IWorldPosCallableBridge) this.worldPosCallable).bridge$getLocation(), this.inputSlots, this.outputSlot, (RepairContainer) (Object) this);
    bukkitEntity = new CraftInventoryView(((PlayerEntityBridge) this.player).bridge$getBukkitEntity(), inventory, (Container) (Object) this);
    return bukkitEntity;
}
Also used : CraftInventory(org.bukkit.craftbukkit.v.inventory.CraftInventory) Container(net.minecraft.inventory.container.Container) RepairContainer(net.minecraft.inventory.container.RepairContainer) CraftInventoryView(org.bukkit.craftbukkit.v.inventory.CraftInventoryView) PlayerEntityBridge(io.izzel.arclight.common.bridge.entity.player.PlayerEntityBridge) CraftInventoryAnvil(org.bukkit.craftbukkit.v.inventory.CraftInventoryAnvil)

Aggregations

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