Search in sources :

Example 1 with CraftInventoryFurnace

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

the class AbstractFurnaceContainerMixin method getBukkitView.

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

Aggregations

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