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-03-07 01:04:32 +00:00
|
|
|
import net.shadowfacts.phycon.PhysicalConnectivity
|
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
|
2021-02-28 18:48:39 +00:00
|
|
|
import net.shadowfacts.phycon.block.cable.CableBlock
|
|
|
|
import net.shadowfacts.phycon.block.extractor.ExtractorBlock
|
2021-02-28 22:56:25 +00:00
|
|
|
import net.shadowfacts.phycon.block.inserter.InserterBlock
|
2021-02-28 18:48:39 +00:00
|
|
|
import net.shadowfacts.phycon.block.miner.MinerBlock
|
|
|
|
import net.shadowfacts.phycon.block.netinterface.InterfaceBlock
|
|
|
|
import net.shadowfacts.phycon.block.netswitch.SwitchBlock
|
2021-03-01 03:03:29 +00:00
|
|
|
import net.shadowfacts.phycon.block.redstone_controller.RedstoneControllerBlock
|
2021-03-03 03:20:25 +00:00
|
|
|
import net.shadowfacts.phycon.block.redstone_emitter.RedstoneEmitterBlock
|
2021-02-28 18:48:39 +00:00
|
|
|
import net.shadowfacts.phycon.block.terminal.TerminalBlock
|
2021-03-03 23:43:49 +00:00
|
|
|
import net.shadowfacts.phycon.item.DeviceBlockItem
|
2021-02-13 23:24:36 +00:00
|
|
|
|
2019-10-27 01:36:31 +00:00
|
|
|
/**
|
|
|
|
* @author shadowfacts
|
|
|
|
*/
|
|
|
|
object PhyItems {
|
|
|
|
|
2021-03-03 23:43:49 +00:00
|
|
|
val INTERFACE = DeviceBlockItem(PhyBlocks.INTERFACE, Item.Settings())
|
|
|
|
val TERMINAL = DeviceBlockItem(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-03-03 23:43:49 +00:00
|
|
|
val EXTRACTOR = DeviceBlockItem(PhyBlocks.EXTRACTOR, Item.Settings())
|
|
|
|
val INSERTER = DeviceBlockItem(PhyBlocks.INSERTER, Item.Settings())
|
|
|
|
val MINER = DeviceBlockItem(PhyBlocks.MINER, Item.Settings())
|
|
|
|
val REDSTONE_CONTROLLER = DeviceBlockItem(PhyBlocks.REDSTONE_CONTROLLER, Item.Settings())
|
|
|
|
val REDSTONE_EMITTER = DeviceBlockItem(PhyBlocks.REDSTONE_EMITTER, Item.Settings())
|
2021-02-15 01:01:33 +00:00
|
|
|
|
2019-10-28 16:37:54 +00:00
|
|
|
val SCREWDRIVER = ScrewdriverItem()
|
2021-02-14 17:07:05 +00:00
|
|
|
val CONSOLE = ConsoleItem()
|
2021-03-07 01:04:32 +00:00
|
|
|
val TWISTED_PAIR = Item(Item.Settings())
|
2019-10-28 16:37:54 +00:00
|
|
|
|
2019-10-27 01:36:31 +00:00
|
|
|
fun init() {
|
2021-02-14 02:37:39 +00:00
|
|
|
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-28 22:56:25 +00:00
|
|
|
register(InserterBlock.ID, INSERTER)
|
2021-02-15 04:42:19 +00:00
|
|
|
register(MinerBlock.ID, MINER)
|
2021-02-24 03:05:05 +00:00
|
|
|
register(RedstoneControllerBlock.ID, REDSTONE_CONTROLLER)
|
2021-03-03 03:20:25 +00:00
|
|
|
register(RedstoneEmitterBlock.ID, REDSTONE_EMITTER)
|
2021-02-15 01:01:33 +00:00
|
|
|
|
2019-10-28 16:37:54 +00:00
|
|
|
register(ScrewdriverItem.ID, SCREWDRIVER)
|
2021-02-14 17:07:05 +00:00
|
|
|
register(ConsoleItem.ID, CONSOLE)
|
2021-03-07 01:04:32 +00:00
|
|
|
register(Identifier(PhysicalConnectivity.MODID, "twisted_pair"), TWISTED_PAIR)
|
2019-10-27 01:36:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
private fun register(id: Identifier, item: Item) {
|
|
|
|
Registry.register(Registry.ITEM, id, item)
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|