Search in sources :

Example 1 with TileInventory

use of net.minecraft.server.v1_16_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);
}
Also used : ChatMessage(net.minecraft.server.v1_16_R3.ChatMessage) TileInventory(net.minecraft.server.v1_16_R3.TileInventory)

Example 2 with TileInventory

use of net.minecraft.server.v1_16_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);
}
Also used : ChatMessage(net.minecraft.server.v1_14_R1.ChatMessage) TileInventory(net.minecraft.server.v1_14_R1.TileInventory)

Example 3 with TileInventory

use of net.minecraft.server.v1_16_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);
}
Also used : ChatMessage(net.minecraft.server.v1_15_R1.ChatMessage) TileInventory(net.minecraft.server.v1_15_R1.TileInventory)

Example 4 with TileInventory

use of net.minecraft.server.v1_16_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);
}
Also used : ChatMessage(net.minecraft.server.v1_16_R1.ChatMessage) TileInventory(net.minecraft.server.v1_16_R1.TileInventory)

Example 5 with TileInventory

use of net.minecraft.server.v1_16_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);
}
Also used : ChatMessage(net.minecraft.server.v1_16_R2.ChatMessage) TileInventory(net.minecraft.server.v1_16_R2.TileInventory)

Aggregations

ChatMessage (net.minecraft.server.v1_14_R1.ChatMessage)1 TileInventory (net.minecraft.server.v1_14_R1.TileInventory)1 ChatMessage (net.minecraft.server.v1_15_R1.ChatMessage)1 TileInventory (net.minecraft.server.v1_15_R1.TileInventory)1 ChatMessage (net.minecraft.server.v1_16_R1.ChatMessage)1 TileInventory (net.minecraft.server.v1_16_R1.TileInventory)1 ChatMessage (net.minecraft.server.v1_16_R2.ChatMessage)1 TileInventory (net.minecraft.server.v1_16_R2.TileInventory)1 ChatMessage (net.minecraft.server.v1_16_R3.ChatMessage)1 TileInventory (net.minecraft.server.v1_16_R3.TileInventory)1