Search in sources :

Example 1 with CraftInventoryBeacon

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

the class BeaconContainerMixin method getBukkitView.

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

Aggregations

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