mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-17 10:55:17 +00:00
Patchouli entry colors and entry formatting migration
This commit is contained in:
1 parent
b2682fd143
commit
8ab71aaf73
90 files changed
+4358
-4267
No files matched your search
@@ -17,6 +17,7 @@ import com.google.gson.GsonBuilder;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.crafting.IRecipe;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraft.util.text.TextFormatting;
|
||||
import net.minecraftforge.api.distmarker.Dist;
|
||||
import net.minecraftforge.api.distmarker.OnlyIn;
|
||||
import vazkii.botania.api.BotaniaAPI;
|
||||
@@ -144,9 +145,13 @@ public class LexiconEntry implements Comparable<LexiconEntry> {
|
||||
entry.put("name", this.getUnlocalizedName());
|
||||
entry.put("category", fixCamelCase(category.getUnlocalizedName().substring("botania.category.".length())));
|
||||
entry.put("icon", getIcon().getItem().getRegistryName().toString());
|
||||
if(this.getKnowledgeType().color != TextFormatting.RESET) {
|
||||
entry.put("entry_color", Integer.toString(this.getKnowledgeType().color.getColor(), 16));
|
||||
}
|
||||
if (isPriority()) {
|
||||
entry.put("priority", true);
|
||||
} else if (!(this instanceof RelicLexiconEntry || this.getUnlocalizedName().contains("terrasteel") || this.getUnlocalizedName().contains("relics"))) {
|
||||
} else if (!(this instanceof RelicLexiconEntry || this.getUnlocalizedName().contains("terrasteel")
|
||||
|| this.getUnlocalizedName().contains("relics") || this.getUnlocalizedName().contains("gaia_ritual"))) {
|
||||
entry.put("read_by_default", true);
|
||||
}
|
||||
if (this instanceof WelcomeLexiconEntry)
|
||||
|
||||
Reference in new issue
Block a user