Search in sources :

Example 1 with CraftInventoryBrewer

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

the class BrewingStandContainerMixin method getBukkitView.

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

Aggregations

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