package com.atsuishio.superbwarfare.init; import com.atsuishio.superbwarfare.Mod; import com.atsuishio.superbwarfare.block.*; import net.minecraft.core.registries.BuiltInRegistries; import net.minecraft.world.level.block.Block; import net.minecraft.world.level.block.SoundType; import net.minecraft.world.level.block.state.BlockBehaviour; import net.minecraft.world.level.block.state.properties.NoteBlockInstrument; import net.neoforged.neoforge.registries.DeferredHolder; import net.neoforged.neoforge.registries.DeferredRegister; @SuppressWarnings("unused") public class ModBlocks { public static final DeferredRegister REGISTRY = DeferredRegister.create(BuiltInRegistries.BLOCK, Mod.MODID); public static final DeferredHolder SANDBAG = REGISTRY.register("sandbag", () -> new Block(BlockBehaviour.Properties.of().instrument(NoteBlockInstrument.SNARE).sound(SoundType.SAND).strength(10f, 20f))); public static final DeferredHolder BARBED_WIRE = REGISTRY.register("barbed_wire", BarbedWireBlock::new); public static final DeferredHolder JUMP_PAD = REGISTRY.register("jump_pad", JumpPadBlock::new); public static final DeferredHolder GALENA_ORE = REGISTRY.register("galena_ore", () -> new Block(BlockBehaviour.Properties.of().instrument(NoteBlockInstrument.BASEDRUM).sound(SoundType.STONE).strength(3f, 5f).requiresCorrectToolForDrops())); public static final DeferredHolder DEEPSLATE_GALENA_ORE = REGISTRY.register("deepslate_galena_ore", () -> new Block(BlockBehaviour.Properties.of().instrument(NoteBlockInstrument.BASEDRUM).sound(SoundType.STONE).strength(3f, 8f).requiresCorrectToolForDrops())); public static final DeferredHolder SCHEELITE_ORE = REGISTRY.register("scheelite_ore", () -> new Block(BlockBehaviour.Properties.of().instrument(NoteBlockInstrument.BASEDRUM).sound(SoundType.STONE).strength(3f, 5f).requiresCorrectToolForDrops())); public static final DeferredHolder DEEPSLATE_SCHEELITE_ORE = REGISTRY.register("deepslate_scheelite_ore", () -> new Block(BlockBehaviour.Properties.of().instrument(NoteBlockInstrument.BASEDRUM).sound(SoundType.STONE).strength(3f, 8f).requiresCorrectToolForDrops())); public static final DeferredHolder SILVER_ORE = REGISTRY.register("silver_ore", () -> new Block(BlockBehaviour.Properties.of().instrument(NoteBlockInstrument.BASEDRUM).sound(SoundType.STONE).strength(3f, 5f).requiresCorrectToolForDrops())); public static final DeferredHolder DEEPSLATE_SILVER_ORE = REGISTRY.register("deepslate_silver_ore", () -> new Block(BlockBehaviour.Properties.of().instrument(NoteBlockInstrument.BASEDRUM).sound(SoundType.STONE).strength(3f, 8f).requiresCorrectToolForDrops())); public static final DeferredHolder DRAGON_TEETH = REGISTRY.register("dragon_teeth", DragonTeethBlock::new); public static final DeferredHolder REFORGING_TABLE = REGISTRY.register("reforging_table", ReforgingTableBlock::new); public static final DeferredHolder LEAD_BLOCK = REGISTRY.register("lead_block", () -> new Block(BlockBehaviour.Properties.of().instrument(NoteBlockInstrument.BASEDRUM).sound(SoundType.METAL).strength(5f, 6f).requiresCorrectToolForDrops())); public static final DeferredHolder STEEL_BLOCK = REGISTRY.register("steel_block", () -> new Block(BlockBehaviour.Properties.of().instrument(NoteBlockInstrument.BASEDRUM).sound(SoundType.METAL).strength(5f, 6f).requiresCorrectToolForDrops())); public static final DeferredHolder TUNGSTEN_BLOCK = REGISTRY.register("tungsten_block", () -> new Block(BlockBehaviour.Properties.of().instrument(NoteBlockInstrument.BASEDRUM).sound(SoundType.METAL).strength(5f, 6f).requiresCorrectToolForDrops())); public static final DeferredHolder SILVER_BLOCK = REGISTRY.register("silver_block", () -> new Block(BlockBehaviour.Properties.of().instrument(NoteBlockInstrument.BASEDRUM).sound(SoundType.METAL).strength(5f, 6f).requiresCorrectToolForDrops())); public static final DeferredHolder CEMENTED_CARBIDE_BLOCK = REGISTRY.register("cemented_carbide_block", () -> new Block(BlockBehaviour.Properties.of().instrument(NoteBlockInstrument.BASEDRUM).sound(SoundType.METAL).strength(5f, 6f).requiresCorrectToolForDrops())); public static final DeferredHolder CONTAINER = REGISTRY.register("container", () -> new ContainerBlock()); public static final DeferredHolder SMALL_CONTAINER = REGISTRY.register("small_container", () -> new SmallContainerBlock()); public static final DeferredHolder CHARGING_STATION = REGISTRY.register("charging_station", ChargingStationBlock::new); public static final DeferredHolder CREATIVE_CHARGING_STATION = REGISTRY.register("creative_charging_station", () -> new CreativeChargingStationBlock()); public static final DeferredHolder FUMO_25 = REGISTRY.register("fumo_25", FuMO25Block::new); }