mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-19 19:59:36 +00:00
Clean up flower and mushroom jsons
This commit is contained in:
1 parent
e2ac5ecad1
commit
2f4785c7b4
52 files changed
+117
-495
No files matched your search
@@ -348,25 +348,25 @@ public final class ModelHandler {
|
||||
private static void registerMushrooms() {
|
||||
Item item = Item.getItemFromBlock(ModBlocks.mushroom);
|
||||
for (EnumDyeColor color : EnumDyeColor.values()) {
|
||||
String name = "botania:mushroom_" + color.getName();
|
||||
ModelLoader.registerItemVariants(item, new ModelResourceLocation(name, "inventory"));
|
||||
ModelLoader.setCustomModelResourceLocation(item, color.getMetadata(), new ModelResourceLocation(name, "inventory"));
|
||||
String name = GameData.getBlockRegistry().getNameForObject(ModBlocks.mushroom).toString();
|
||||
ModelLoader.registerItemVariants(item, new ModelResourceLocation(name, "inventory_" + color.getName()));
|
||||
ModelLoader.setCustomModelResourceLocation(item, color.getMetadata(), new ModelResourceLocation(name, "inventory_" + color.getName()));
|
||||
}
|
||||
}
|
||||
|
||||
private static void registerFlowers() {
|
||||
Item item = Item.getItemFromBlock(ModBlocks.flower);
|
||||
for (EnumDyeColor color : EnumDyeColor.values()) {
|
||||
String name = "botania:flower_" + color.getName();
|
||||
ModelLoader.registerItemVariants(item, new ModelResourceLocation(name, "inventory"));
|
||||
ModelLoader.setCustomModelResourceLocation(item, color.getMetadata(), new ModelResourceLocation(name, "inventory"));
|
||||
String name = GameData.getBlockRegistry().getNameForObject(ModBlocks.flower).toString();
|
||||
ModelLoader.registerItemVariants(item, new ModelResourceLocation(name, "inventory_" + color.getName()));
|
||||
ModelLoader.setCustomModelResourceLocation(item, color.getMetadata(), new ModelResourceLocation(name, "inventory_" + color.getName()));
|
||||
}
|
||||
|
||||
item = Item.getItemFromBlock(ModBlocks.shinyFlower);
|
||||
for (EnumDyeColor color : EnumDyeColor.values()) {
|
||||
String name = "botania:shinyFlower_" + color.getName();
|
||||
ModelLoader.registerItemVariants(item, new ModelResourceLocation(name, "inventory"));
|
||||
ModelLoader.setCustomModelResourceLocation(item, color.getMetadata(), new ModelResourceLocation(name, "inventory"));
|
||||
String name = GameData.getBlockRegistry().getNameForObject(ModBlocks.shinyFlower).toString();
|
||||
ModelLoader.registerItemVariants(item, new ModelResourceLocation(name, "inventory_" + color.getName()));
|
||||
ModelLoader.setCustomModelResourceLocation(item, color.getMetadata(), new ModelResourceLocation(name, "inventory_" + color.getName()));
|
||||
}
|
||||
|
||||
item = Item.getItemFromBlock(ModBlocks.doubleFlower1);
|
||||
|
||||
Reference in new issue
Block a user