Eliminate the IRegisterCallback shim

This commit is contained in:
Vincent Lee committed 2016-08-28 10:33:29 -05:00
1 parent e5ec84e040
commit f6a68a0d83
66 files changed
+328 -194

No files matched your search

@@ -180,7 +180,6 @@ import java.util.Set;
public final class ModBlocks {
public static final Set<Block> ALL_BLOCKS = new HashSet<>();
public static Block flower;
public static Block altar;
public static Block livingrock;
@@ -356,14 +355,6 @@ public final class ModBlocks {
ModFluffBlocks.init();
for (Block b : ALL_BLOCKS) {
if (b instanceof IRegisterCallback) {
((IRegisterCallback) b).register();
} else {
throw new RuntimeException(b.getRegistryName() + " doesn't have register callbacks!");
}
}
for(int i = 0; i < 16; i++)
OreDictionary.registerOre(LibOreDict.FLOWER[i], new ItemStack(flower, 1, i));