Created
May 12, 2020 21:42
-
-
Save HexBugOrion/b0c57402e56732802bb8e9bbba027afe to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.oriondev.baryon_biomes.lists; | |
| import com.oriondev.baryon_biomes.Main; | |
| import com.oriondev.baryon_biomes.world.feature.PineTree; | |
| import net.minecraft.block.*; | |
| import net.minecraft.block.material.Material; | |
| import net.minecraft.block.material.MaterialColor; | |
| import net.minecraftforge.fml.RegistryObject; | |
| import net.minecraftforge.registries.DeferredRegister; | |
| import net.minecraftforge.registries.ForgeRegistries; | |
| public class BlockList { | |
| public static final DeferredRegister<Block> BLOCKS = new DeferredRegister<>(ForgeRegistries.BLOCKS, Main.MOD_ID); | |
| public static final RegistryObject<Block> PINE_LOG = BLOCKS.register("pine_log", ()-> new LogBlock(MaterialColor.WOOD, Block.Properties.create(Material.WOOD).sound(SoundType.WOOD).hardnessAndResistance(2, 2))); | |
| public static final RegistryObject<Block> PINE_LEAVES = BLOCKS.register("pine_leaves", ()-> new LeavesBlock(Block.Properties.create(Material.LEAVES).sound(SoundType.PLANT).hardnessAndResistance(0.2f,0.2f).notSolid())); | |
| public static final RegistryObject<Block> PINE_SAPLING = BLOCKS.register("pine_sapling ", ()-> new PineSapling(()-> new PineTree(), Block.Properties.from(Blocks.SPRUCE_SAPLING))); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.oriondev.baryon_biomes.lists; | |
| import com.oriondev.baryon_biomes.Main; | |
| import com.oriondev.baryon_biomes.world.feature.PineTree; | |
| import net.minecraft.block.*; | |
| import net.minecraft.block.material.Material; | |
| import net.minecraft.block.material.MaterialColor; | |
| import net.minecraftforge.fml.RegistryObject; | |
| import net.minecraftforge.registries.DeferredRegister; | |
| import net.minecraftforge.registries.ForgeRegistries; | |
| public class BlockList { | |
| public static final DeferredRegister<Block> BLOCKS = new DeferredRegister<>(ForgeRegistries.BLOCKS, Main.MOD_ID); | |
| public static final RegistryObject<Block> PINE_LOG = BLOCKS.register("pine_log", ()-> new LogBlock(MaterialColor.WOOD, Block.Properties.create(Material.WOOD).sound(SoundType.WOOD).hardnessAndResistance(2, 2))); | |
| public static final RegistryObject<Block> PINE_LEAVES = BLOCKS.register("pine_leaves", ()-> new LeavesBlock(Block.Properties.create(Material.LEAVES).sound(SoundType.PLANT).hardnessAndResistance(0.2f,0.2f).notSolid())); | |
| public static final RegistryObject<Block> PINE_SAPLING = BLOCKS.register("pine_sapling ", ()-> new PineSapling(()-> new PineTree(), Block.Properties.from(Blocks.SPRUCE_SAPLING))); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment