Use GameRegistry

This commit is contained in:
Muramasa 2016-07-27 04:44:32 +01:00 committed by Dream-Master
parent 54d3a79809
commit 50b9138321
3 changed files with 6 additions and 3 deletions

View file

@ -1,5 +1,6 @@
package gregtech.common.blocks;
import cpw.mods.fml.common.registry.GameRegistry;
import gregtech.api.GregTech_API;
import gregtech.api.enums.Materials;
import gregtech.api.enums.OrePrefixes;
@ -9,7 +10,7 @@ import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
public class GT_Block_Ores_UB1 extends GT_Block_Ores_Abstract {
Block aUBBlock = (Block) Block.blockRegistry.getObject("UndergroundBiomes:igneousStone");
Block aUBBlock = GameRegistry.findBlock("UndergroundBiomes", "igneousStone");
public GT_Block_Ores_UB1() {
super("gt.blockores.ub1", true, Material.rock);

View file

@ -1,5 +1,6 @@
package gregtech.common.blocks;
import cpw.mods.fml.common.registry.GameRegistry;
import gregtech.api.GregTech_API;
import gregtech.api.enums.Materials;
import gregtech.api.enums.OrePrefixes;
@ -9,7 +10,7 @@ import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
public class GT_Block_Ores_UB2 extends GT_Block_Ores_Abstract {
Block aUBBlock = (Block) Block.blockRegistry.getObject("UndergroundBiomes:metamorphicStone");
Block aUBBlock = GameRegistry.findBlock("UndergroundBiomes", "metamorphicStone");
public GT_Block_Ores_UB2() {
super("gt.blockores.ub2", true, Material.rock);

View file

@ -1,5 +1,6 @@
package gregtech.common.blocks;
import cpw.mods.fml.common.registry.GameRegistry;
import gregtech.api.GregTech_API;
import gregtech.api.enums.Materials;
import gregtech.api.enums.OrePrefixes;
@ -9,7 +10,7 @@ import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
public class GT_Block_Ores_UB3 extends GT_Block_Ores_Abstract {
Block aUBBlock = (Block) Block.blockRegistry.getObject("UndergroundBiomes:sedimentaryStone");
Block aUBBlock = GameRegistry.findBlock("UndergroundBiomes", "sedimentaryStone");
public GT_Block_Ores_UB3() {
super("gt.blockores.ub3", true, Material.rock);