use of net.minecraft.server.v1_14_R1.TileInventory in project PublicCrafters by BananaPuncher714.
the class ContainerManager_v1_16_R3 method openWorkbench.
@Override
public void openWorkbench(Player player, Location loc, InventoryType type) {
TileInventory tileEntity = new TileInventory(new CustomTileEntityContainerWorkbench(this, loc), new ChatMessage("container.crafting", new Object[0]));
((CraftPlayer) player).getHandle().openContainer(tileEntity);
}
use of net.minecraft.server.v1_14_R1.TileInventory in project PublicCrafters by BananaPuncher714.
the class ContainerManager_v1_14_R1 method openWorkbench.
@Override
public void openWorkbench(Player player, Location loc, InventoryType type) {
TileInventory tileEntity = new TileInventory(new CustomTileEntityContainerWorkbench(this, loc), new ChatMessage("container.crafting", new Object[0]));
((CraftPlayer) player).getHandle().openContainer(tileEntity);
}
use of net.minecraft.server.v1_14_R1.TileInventory in project PublicCrafters by BananaPuncher714.
the class ContainerManager_v1_15_R1 method openWorkbench.
@Override
public void openWorkbench(Player player, Location loc, InventoryType type) {
TileInventory tileEntity = new TileInventory(new CustomTileEntityContainerWorkbench(this, loc), new ChatMessage("container.crafting", new Object[0]));
((CraftPlayer) player).getHandle().openContainer(tileEntity);
}
use of net.minecraft.server.v1_14_R1.TileInventory in project PublicCrafters by BananaPuncher714.
the class ContainerManager_v1_16_R1 method openWorkbench.
@Override
public void openWorkbench(Player player, Location loc, InventoryType type) {
TileInventory tileEntity = new TileInventory(new CustomTileEntityContainerWorkbench(this, loc), new ChatMessage("container.crafting", new Object[0]));
((CraftPlayer) player).getHandle().openContainer(tileEntity);
}
use of net.minecraft.server.v1_14_R1.TileInventory in project PublicCrafters by BananaPuncher714.
the class ContainerManager_v1_16_R2 method openWorkbench.
@Override
public void openWorkbench(Player player, Location loc, InventoryType type) {
TileInventory tileEntity = new TileInventory(new CustomTileEntityContainerWorkbench(this, loc), new ChatMessage("container.crafting", new Object[0]));
((CraftPlayer) player).getHandle().openContainer(tileEntity);
}
Aggregations