Search in sources :

Example 1 with CraftInventoryLectern

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

the class LecternContainerMixin method getBukkitView.

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

Aggregations

ServerPlayerEntityBridge (io.izzel.arclight.common.bridge.entity.player.ServerPlayerEntityBridge)1 Container (net.minecraft.inventory.container.Container)1 LecternContainer (net.minecraft.inventory.container.LecternContainer)1 CraftInventoryLectern (org.bukkit.craftbukkit.v.inventory.CraftInventoryLectern)1 CraftInventoryView (org.bukkit.craftbukkit.v.inventory.CraftInventoryView)1