mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-19 03:39:17 +00:00
Eliminate the IRegisterCallback shim
This commit is contained in:
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));
|
||||
|
||||
|
||||
Reference in new issue
Block a user