Grind through a bunch of items. This is going to take a while

This commit is contained in:
Vincent Lee committed 2019-02-16 22:49:49 -06:00
1 parent 9cda2d5e87
commit 56e12c7dfd
56 files changed
+479 -651

No files matched your search

@@ -910,4 +910,18 @@ public final class ModBlocks {
BotaniaAPI.registerMiniSubTile(new ResourceLocation(key.getNamespace(), key.getPath() + "Chibi"), innerClazz, key);
}
// This is a method returning fresh arrays to account for registry replacements
private static Block[] getOrderedFlowers() {
return new Block[] {
whiteFlower, orangeFlower, magentaFlower, lightBlueFlower,
yellowFlower, limeFlower, pinkFlower, grayFlower,
lightGrayFlower, cyanFlower, purpleFlower, blueFlower,
brownFlower, greenFlower, redFlower, blackFlower
};
}
public static Block getFlower(EnumDyeColor color) {
return getOrderedFlowers()[color.getId()];
}
}