Localize names
This commit is contained in:
parent
c8cdf425cb
commit
27713aedba
|
@ -18,6 +18,7 @@ import net.minecraft.network.PacketByteBuf
|
|||
import net.minecraft.screen.ScreenHandler
|
||||
import net.minecraft.server.network.ServerPlayerEntity
|
||||
import net.minecraft.text.LiteralText
|
||||
import net.minecraft.text.TranslatableText
|
||||
import net.minecraft.util.Tickable
|
||||
import net.minecraft.util.math.Direction
|
||||
import net.shadowfacts.phycon.api.Interface
|
||||
|
@ -224,7 +225,7 @@ class TerminalBlockEntity: DeviceBlockEntity(PhyBlockEntities.TERMINAL), Invento
|
|||
return TerminalScreenHandler(syncId, playerInv, this@TerminalBlockEntity)
|
||||
}
|
||||
|
||||
override fun getDisplayName() = LiteralText("Terminal")
|
||||
override fun getDisplayName() = TranslatableText("block.phycon.terminal")
|
||||
|
||||
override fun writeScreenOpeningData(player: ServerPlayerEntity, buf: PacketByteBuf) {
|
||||
buf.writeBlockPos(this@TerminalBlockEntity.pos)
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"block.phycon.switch": "Network Switch",
|
||||
"block.phycon.network_interface": "Inventory Interface",
|
||||
"block.phycon.terminal": "Terminal",
|
||||
"block.phycon.cable": "Cable",
|
||||
|
||||
"item.phycon.screwdriver": "Screwdriver"
|
||||
}
|
Loading…
Reference in New Issue