mirror of
https://github.com/Ellpeck/PrettyPipes.git
synced 2024-06-02 20:13:37 +02:00
32 lines
1.1 KiB
Java
32 lines
1.1 KiB
Java
package de.ellpeck.prettypipes.terminal;
|
|
|
|
import de.ellpeck.prettypipes.PrettyPipes;
|
|
import de.ellpeck.prettypipes.Registry;
|
|
import de.ellpeck.prettypipes.terminal.containers.CraftingTerminalContainer;
|
|
import de.ellpeck.prettypipes.terminal.containers.ItemTerminalContainer;
|
|
import net.minecraft.entity.player.PlayerEntity;
|
|
import net.minecraft.entity.player.PlayerInventory;
|
|
import net.minecraft.inventory.container.Container;
|
|
import net.minecraft.util.text.ITextComponent;
|
|
import net.minecraft.util.text.TranslationTextComponent;
|
|
|
|
import javax.annotation.Nullable;
|
|
|
|
public class CraftingTerminalTileEntity extends ItemTerminalTileEntity {
|
|
|
|
public CraftingTerminalTileEntity() {
|
|
super(Registry.craftingTerminalTileEntity);
|
|
}
|
|
|
|
@Override
|
|
public ITextComponent getDisplayName() {
|
|
return new TranslationTextComponent("container." + PrettyPipes.ID + ".crafting_terminal");
|
|
}
|
|
|
|
@Nullable
|
|
@Override
|
|
public Container createMenu(int window, PlayerInventory inv, PlayerEntity player) {
|
|
return new CraftingTerminalContainer(Registry.craftingTerminalContainer, window, player, this.pos);
|
|
}
|
|
}
|