Fix a mistake created by intellij.

This commit is contained in:
alexbegt 2020-02-27 22:26:38 -05:00
parent b49809cd9a
commit 14fe3e34fb
1 changed files with 8 additions and 8 deletions

View File

@ -34,35 +34,35 @@ public class IronChestsBlocks {
public static final RegistryObject<IronChestBlock> IRON_CHEST = register( public static final RegistryObject<IronChestBlock> IRON_CHEST = register(
"iron_chest", () -> new IronChestBlock(Block.Properties.create(Material.IRON).hardnessAndResistance(3.0F)), "iron_chest", () -> new IronChestBlock(Block.Properties.create(Material.IRON).hardnessAndResistance(3.0F)),
IronChestsBlocks::ironChestRenderer); () -> ironChestRenderer());
public static final RegistryObject<GoldChestBlock> GOLD_CHEST = register( public static final RegistryObject<GoldChestBlock> GOLD_CHEST = register(
"gold_chest", () -> new GoldChestBlock(Block.Properties.create(Material.IRON).hardnessAndResistance(3.0F)), "gold_chest", () -> new GoldChestBlock(Block.Properties.create(Material.IRON).hardnessAndResistance(3.0F)),
IronChestsBlocks::goldChestRenderer); () -> goldChestRenderer());
public static final RegistryObject<DiamondChestBlock> DIAMOND_CHEST = register( public static final RegistryObject<DiamondChestBlock> DIAMOND_CHEST = register(
"diamond_chest", () -> new DiamondChestBlock(Block.Properties.create(Material.IRON).hardnessAndResistance(3.0F)), "diamond_chest", () -> new DiamondChestBlock(Block.Properties.create(Material.IRON).hardnessAndResistance(3.0F)),
IronChestsBlocks::diamondChestRenderer); () -> diamondChestRenderer());
public static final RegistryObject<CopperChestBlock> COPPER_CHEST = register( public static final RegistryObject<CopperChestBlock> COPPER_CHEST = register(
"copper_chest", () -> new CopperChestBlock(Block.Properties.create(Material.IRON).hardnessAndResistance(3.0F)), "copper_chest", () -> new CopperChestBlock(Block.Properties.create(Material.IRON).hardnessAndResistance(3.0F)),
IronChestsBlocks::copperChestRenderer); () -> copperChestRenderer());
public static final RegistryObject<SilverChestBlock> SILVER_CHEST = register( public static final RegistryObject<SilverChestBlock> SILVER_CHEST = register(
"silver_chest", () -> new SilverChestBlock(Block.Properties.create(Material.IRON).hardnessAndResistance(3.0F)), "silver_chest", () -> new SilverChestBlock(Block.Properties.create(Material.IRON).hardnessAndResistance(3.0F)),
IronChestsBlocks::silverChestRenderer); () -> silverChestRenderer());
public static final RegistryObject<CrystalChestBlock> CRYSTAL_CHEST = register( public static final RegistryObject<CrystalChestBlock> CRYSTAL_CHEST = register(
"crystal_chest", () -> new CrystalChestBlock(Block.Properties.create(Material.IRON).hardnessAndResistance(3.0F)), "crystal_chest", () -> new CrystalChestBlock(Block.Properties.create(Material.IRON).hardnessAndResistance(3.0F)),
IronChestsBlocks::crystalChestRenderer); () -> crystalChestRenderer());
public static final RegistryObject<ObsidianChestBlock> OBSIDIAN_CHEST = register( public static final RegistryObject<ObsidianChestBlock> OBSIDIAN_CHEST = register(
"obsidian_chest", () -> new ObsidianChestBlock(Block.Properties.create(Material.IRON).hardnessAndResistance(3.0F, 10000.0F)), "obsidian_chest", () -> new ObsidianChestBlock(Block.Properties.create(Material.IRON).hardnessAndResistance(3.0F, 10000.0F)),
IronChestsBlocks::obsidianChestRenderer); () -> obsidianChestRenderer());
public static final RegistryObject<DirtChestBlock> DIRT_CHEST = register( public static final RegistryObject<DirtChestBlock> DIRT_CHEST = register(
"dirt_chest", () -> new DirtChestBlock(Block.Properties.create(Material.IRON).hardnessAndResistance(3.0F)), "dirt_chest", () -> new DirtChestBlock(Block.Properties.create(Material.IRON).hardnessAndResistance(3.0F)),
IronChestsBlocks::dirtChestRenderer); () -> dirtChestRenderer());
private static <T extends Block> RegistryObject<T> register(String name, Supplier<? extends T> sup, Supplier<Callable<ItemStackTileEntityRenderer>> renderMethod) { private static <T extends Block> RegistryObject<T> register(String name, Supplier<? extends T> sup, Supplier<Callable<ItemStackTileEntityRenderer>> renderMethod) {
return register(name, sup, block -> item(block, renderMethod)); return register(name, sup, block -> item(block, renderMethod));