use of org.bukkit.craftbukkit.v.inventory.CraftInventoryView in project Arclight by IzzelAliz.
the class CartographyContainerMixin method getBukkitView.
@Override
public CraftInventoryView getBukkitView() {
if (bukkitEntity != null) {
return bukkitEntity;
}
CraftInventoryCartography inventory = new CraftInventoryCartography(this.tableInventory, this.field_217001_f);
bukkitEntity = new CraftInventoryView(this.player, inventory, (Container) (Object) this);
return bukkitEntity;
}
use of org.bukkit.craftbukkit.v.inventory.CraftInventoryView in project Arclight by IzzelAliz.
the class ChestContainerMixin method getBukkitView.
@Override
public CraftInventoryView getBukkitView() {
if (bukkitEntity != null) {
return bukkitEntity;
}
CraftInventory inventory;
if (this.lowerChestInventory instanceof PlayerInventory) {
inventory = new CraftInventoryPlayer((PlayerInventory) this.lowerChestInventory);
} else if (this.lowerChestInventory instanceof DoubleSidedInventory) {
inventory = new CraftInventoryDoubleChest((DoubleSidedInventory) this.lowerChestInventory);
} else {
inventory = new CraftInventory(this.lowerChestInventory);
}
bukkitEntity = new CraftInventoryView(((PlayerEntityBridge) this.playerInventory.player).bridge$getBukkitEntity(), inventory, (Container) (Object) this);
return bukkitEntity;
}
use of org.bukkit.craftbukkit.v.inventory.CraftInventoryView in project Arclight by IzzelAliz.
the class HopperContainerMixin method getBukkitView.
@Override
public CraftInventoryView getBukkitView() {
if (bukkitEntity != null) {
return bukkitEntity;
}
CraftInventory inventory = new CraftInventory(this.hopperInventory);
bukkitEntity = new CraftInventoryView(((PlayerEntityBridge) this.playerInventory.player).bridge$getBukkitEntity(), inventory, (Container) (Object) this);
return bukkitEntity;
}
use of org.bukkit.craftbukkit.v.inventory.CraftInventoryView in project Arclight by IzzelAliz.
the class LoomContainerMixin method getBukkitView.
@Override
public CraftInventoryView getBukkitView() {
if (bukkitEntity != null) {
return bukkitEntity;
}
CraftInventoryLoom inventory = new CraftInventoryLoom(this.inputInventory, this.outputInventory);
bukkitEntity = new CraftInventoryView(((PlayerEntityBridge) this.playerInventory.player).bridge$getBukkitEntity(), inventory, (Container) (Object) this);
return bukkitEntity;
}
use of org.bukkit.craftbukkit.v.inventory.CraftInventoryView 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;
}
Aggregations