Search in sources :

Example 16 with CraftInventoryView

use of org.bukkit.craftbukkit.v.inventory.CraftInventoryView 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

Container (net.minecraft.inventory.container.Container)16 CraftInventoryView (org.bukkit.craftbukkit.v.inventory.CraftInventoryView)16 PlayerEntityBridge (io.izzel.arclight.common.bridge.entity.player.PlayerEntityBridge)14 CraftInventory (org.bukkit.craftbukkit.v.inventory.CraftInventory)6 ServerPlayerEntityBridge (io.izzel.arclight.common.bridge.entity.player.ServerPlayerEntityBridge)2 PlayerInventory (net.minecraft.entity.player.PlayerInventory)2 CraftInventoryCrafting (org.bukkit.craftbukkit.v.inventory.CraftInventoryCrafting)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 AbstractFurnaceContainer (net.minecraft.inventory.container.AbstractFurnaceContainer)1 BeaconContainer (net.minecraft.inventory.container.BeaconContainer)1 BrewingStandContainer (net.minecraft.inventory.container.BrewingStandContainer)1 CartographyContainer (net.minecraft.inventory.container.CartographyContainer)1 ChestContainer (net.minecraft.inventory.container.ChestContainer)1 DispenserContainer (net.minecraft.inventory.container.DispenserContainer)1 EnchantmentContainer (net.minecraft.inventory.container.EnchantmentContainer)1