Search in sources :

Example 1 with CraftInventoryStonecutter

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

the class StonecutterContainerMixin method getBukkitView.

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

Aggregations

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