Search in sources :

Example 1 with CraftInventoryGrindstone

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

the class GrindstoneContainerMixin method getBukkitView.

@Override
public CraftInventoryView getBukkitView() {
    if (bukkitEntity != null) {
        return bukkitEntity;
    }
    CraftInventoryGrindstone inventory = new CraftInventoryGrindstone(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) GrindstoneContainer(net.minecraft.inventory.container.GrindstoneContainer) CraftInventoryView(org.bukkit.craftbukkit.v.inventory.CraftInventoryView) CraftInventoryGrindstone(org.bukkit.craftbukkit.v.inventory.CraftInventoryGrindstone) PlayerEntityBridge(io.izzel.arclight.common.bridge.entity.player.PlayerEntityBridge)

Aggregations

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