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
|
2021-02-28 18:48:39 +00:00
|
|
|
import net.shadowfacts.phycon.block.cable.CableBlock
|
|
|
|
import net.shadowfacts.phycon.block.extractor.ExtractorBlock
|
|
|
|
import net.shadowfacts.phycon.block.miner.MinerBlock
|
|
|
|
import net.shadowfacts.phycon.block.netinterface.InterfaceBlock
|
|
|
|
import net.shadowfacts.phycon.block.netswitch.SwitchBlock
|
|
|
|
import net.shadowfacts.phycon.block.redstone.RedstoneControllerBlock
|
|
|
|
import net.shadowfacts.phycon.block.terminal.TerminalBlock
|
2021-02-13 23:24:36 +00:00
|
|
|
|
2019-10-27 01:36:31 +00:00
|
|
|
/**
|
|
|
|
* @author shadowfacts
|
|
|
|
*/
|
|
|
|
object PhyItems {
|
|
|
|
|
2021-02-14 02:37:39 +00:00
|
|
|
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-15 04:42:19 +00:00
|
|
|
val MINER = BlockItem(PhyBlocks.MINER, Item.Settings())
|
2021-02-24 03:05:05 +00:00
|
|
|
val REDSTONE_CONTROLLER = BlockItem(PhyBlocks.REDSTONE_CONTROLLER, 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()
|
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-15 04:42:19 +00:00
|
|
|
register(MinerBlock.ID, MINER)
|
2021-02-24 03:05:05 +00:00
|
|
|
register(RedstoneControllerBlock.ID, REDSTONE_CONTROLLER)
|
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)
|
2019-10-27 01:36:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
private fun register(id: Identifier, item: Item) {
|
|
|
|
Registry.register(Registry.ITEM, id, item)
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|