mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-17 10:55:17 +00:00
Grind through a bunch of items. This is going to take a while
This commit is contained in:
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()];
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user