Search in sources :

Example 1 with CraftInventoryCrafting

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

the class PlayerContainerMixin method getBukkitView.

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

Example 2 with CraftInventoryCrafting

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

the class WorkbenchContainerMixin method getBukkitView.

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

Aggregations

PlayerEntityBridge (io.izzel.arclight.common.bridge.entity.player.PlayerEntityBridge)2 Container (net.minecraft.inventory.container.Container)2 CraftInventoryCrafting (org.bukkit.craftbukkit.v.inventory.CraftInventoryCrafting)2 CraftInventoryView (org.bukkit.craftbukkit.v.inventory.CraftInventoryView)2 PlayerContainer (net.minecraft.inventory.container.PlayerContainer)1 WorkbenchContainer (net.minecraft.inventory.container.WorkbenchContainer)1