Search in sources :

Example 6 with CraftInventory

use of org.bukkit.craftbukkit.v.inventory.CraftInventory 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)6 Container (net.minecraft.inventory.container.Container)6 CraftInventory (org.bukkit.craftbukkit.v.inventory.CraftInventory)6 CraftInventoryView (org.bukkit.craftbukkit.v.inventory.CraftInventoryView)6 PlayerInventory (net.minecraft.entity.player.PlayerInventory)2 HashSet (java.util.HashSet)1 PlayerEntity (net.minecraft.entity.player.PlayerEntity)1 ServerPlayerEntity (net.minecraft.entity.player.ServerPlayerEntity)1 CraftResultInventory (net.minecraft.inventory.CraftResultInventory)1 DoubleSidedInventory (net.minecraft.inventory.DoubleSidedInventory)1 IInventory (net.minecraft.inventory.IInventory)1 BeaconContainer (net.minecraft.inventory.container.BeaconContainer)1 ChestContainer (net.minecraft.inventory.container.ChestContainer)1 DispenserContainer (net.minecraft.inventory.container.DispenserContainer)1 HopperContainer (net.minecraft.inventory.container.HopperContainer)1 RepairContainer (net.minecraft.inventory.container.RepairContainer)1 Slot (net.minecraft.inventory.container.Slot)1 CraftInventoryAnvil (org.bukkit.craftbukkit.v.inventory.CraftInventoryAnvil)1 CraftInventoryBeacon (org.bukkit.craftbukkit.v.inventory.CraftInventoryBeacon)1 CraftInventoryCustom (org.bukkit.craftbukkit.v.inventory.CraftInventoryCustom)1