PhysicalConnectivity/src/main/kotlin/net/shadowfacts/phycon/init/PhyItems.kt

53 lines
1.7 KiB
Kotlin
Raw Normal View History

2019-10-27 01:36:31 +00:00
package net.shadowfacts.phycon.init
import net.minecraft.item.BlockItem
import net.minecraft.item.Item
import net.minecraft.util.Identifier
import net.minecraft.util.registry.Registry
2021-02-14 17:07:05 +00:00
import net.shadowfacts.phycon.item.ConsoleItem
2019-10-28 16:37:54 +00:00
import net.shadowfacts.phycon.item.ScrewdriverItem
2019-10-28 15:53:47 +00:00
import net.shadowfacts.phycon.network.block.cable.CableBlock
2021-02-15 01:01:33 +00:00
import net.shadowfacts.phycon.network.block.extractor.ExtractorBlock
import net.shadowfacts.phycon.network.block.netinterface.InterfaceBlock
2019-10-27 03:13:26 +00:00
import net.shadowfacts.phycon.network.block.netswitch.SwitchBlock
import net.shadowfacts.phycon.network.block.terminal.TerminalBlock
2021-02-13 23:24:36 +00:00
import net.shadowfacts.phycon.network.block.test.DestBlock
import net.shadowfacts.phycon.network.block.test.SourceBlock
2019-10-27 01:36:31 +00:00
/**
* @author shadowfacts
*/
object PhyItems {
val INTERFACE = BlockItem(PhyBlocks.INTERFACE, Item.Settings())
val TERMINAL = BlockItem(PhyBlocks.TERMINAL, Item.Settings())
2019-10-27 03:13:26 +00:00
val SWITCH = BlockItem(PhyBlocks.SWITCH, Item.Settings())
2019-10-28 15:53:47 +00:00
val CABLE = BlockItem(PhyBlocks.CABLE, Item.Settings())
2021-02-15 01:01:33 +00:00
val EXTRACTOR = BlockItem(PhyBlocks.EXTRACTOR, Item.Settings())
2021-02-13 23:24:36 +00:00
val SOURCE = BlockItem(PhyBlocks.SOURCE, Item.Settings())
val DEST = BlockItem(PhyBlocks.DEST , Item.Settings())
2019-10-27 01:36:31 +00:00
2019-10-28 16:37:54 +00:00
val SCREWDRIVER = ScrewdriverItem()
2021-02-14 17:07:05 +00:00
val CONSOLE = ConsoleItem()
2019-10-28 16:37:54 +00:00
2019-10-27 01:36:31 +00:00
fun init() {
register(InterfaceBlock.ID, INTERFACE)
register(TerminalBlock.ID, TERMINAL)
2019-10-27 03:13:26 +00:00
register(SwitchBlock.ID, SWITCH)
2019-10-28 15:53:47 +00:00
register(CableBlock.ID, CABLE)
2021-02-15 01:01:33 +00:00
register(ExtractorBlock.ID, EXTRACTOR)
2021-02-13 23:24:36 +00:00
register(SourceBlock.ID, SOURCE)
register(DestBlock.ID, DEST)
2019-10-28 16:37:54 +00:00
register(ScrewdriverItem.ID, SCREWDRIVER)
2021-02-14 17:07:05 +00:00
register(ConsoleItem.ID, CONSOLE)
2019-10-27 01:36:31 +00:00
}
private fun register(id: Identifier, item: Item) {
Registry.register(Registry.ITEM, id, item)
}
}