package com.yolp900.itsjustacharm.reference; import com.yolp900.itsjustacharm.api.IJCConstants; import com.yolp900.itsjustacharm.util.TextHelper; import java.util.List; public class LibTexts { public enum Tooltips { ConstructionTable("ConstructionTable"), BaubleHolderNoExtraBauble("BaubleHolderNoExtraBauble"), BaubleHolderRingStored("BaubleHolderRingStored"), BaubleHolderAdvancedNoExtraRing("BaubleHolderAdvancedNoExtraRing"); private String text; Tooltips(String text) { this.text = "tooltip." + IJCConstants.MOD_PREFIX + text; } public String getUnlocalizedText() { return text; } public String getLocalizedText() { return TextHelper.translateToLocal(getUnlocalizedText()); } public String getLocalizedText(Object... params) { return TextHelper.translateToLocal(getUnlocalizedText(), params); } public String getFormattedText() { return TextHelper.getFormattedText(getLocalizedText()); } public String getFormattedText(Object... params) { return TextHelper.getFormattedText(getLocalizedText(params)); } public List<String> getLinedFormattedText() { return TextHelper.getLinedFormattedText(getLocalizedText()); } public List<String> getLinedFormattedText(Object... params) { return TextHelper.getLinedFormattedText(getLocalizedText(params)); } } public enum ChatMessages { JourneyBegun("JourneyBegun"); private String text; ChatMessages(String text) { this.text = "chat." + IJCConstants.MOD_PREFIX + text; } public String getUnlocalizedText() { return text; } public String getLocalizedText() { return TextHelper.translateToLocal(getUnlocalizedText()); } public String getLocalizedText(Object... params) { return TextHelper.translateToLocal(getUnlocalizedText(), params); } public List<String> getLinedFormattedText() { return TextHelper.getLinedFormattedText(getLocalizedText()); } public List<String> getLinedFormattedText(Object... params) { return TextHelper.getLinedFormattedText(getLocalizedText(params)); } } public enum Popups { FailureStoringAffinity("failureStoringAffinity"), SuccessStoringAffinity("successStoringAffinity"); private String text; Popups(String text) { this.text = "popup." + IJCConstants.MOD_PREFIX + text; } public String getUnlocalizedText() { return text; } public String getLocalizedText() { return TextHelper.translateToLocal(getUnlocalizedText()); } public String getLocalizedText(Object... params) { return TextHelper.translateToLocal(getUnlocalizedText(), params); } public List<String> getLinedFormattedText() { return TextHelper.getLinedFormattedText(getLocalizedText()); } public List<String> getLinedFormattedText(Object... params) { return TextHelper.getLinedFormattedText(getLocalizedText(params)); } } }