@@ -0,0 +1,1507 @@
+package info.u_team.u_team_core.util;%0A%0Aimport net.minecraft.block.Block;%0Aimport net.minecraft.item.Item;%0Aimport net.minecraft.util.text.TranslationTextComponent;%0A%0Apublic class TooltipCreator %7B%0A%09%0A%09private static final Object%5B%5D EMPTY = new Object%5B0%5D;%0A%09%0A%09public static TranslationTextComponent create(Item item, String category, int line) %7B%0A%09%09return create(item, category, line, EMPTY);%0A%09%7D%0A%09%0A%09public static TranslationTextComponent create(Item item, String category, int line, Object... args) %7B%0A%09%09if (!category.isEmpty()) %7B%0A%09%09%09category += %22.%22;%0A%09%09%7D%0A%09%09return new TranslationTextComponent(item.getTranslationKey() + %22.tooltip.%22 + category + line, args);%0A%09%7D%0A%09%0A%09public static TranslationTextComponent create(Block block, String category, int line) %7B%0A%09%09return create(block, category, line, EMPTY);%0A%09%7D%0A%09%0A%09public static TranslationTextComponent create(Block block, String category, int line, Object... args) %7B%0A%09%09if (!category.isEmpty()) %7B%0A%09%09%09category += %22.%22;%0A%09%09%7D%0A%09%09return new TranslationTextComponent(block.getTranslationKey() + %22.tooltip.%22 + category + line, args);%0A%09%7D%0A%09%0A%09public static TranslationTextComponent create(String modid, String key, String category, int line) %7B%0A%09%09return create(modid, key, category, line, EMPTY);%0A%09%7D%0A%09%0A%09public static TranslationTextComponent create(String modid, String key, String category, int line, Object... args) %7B%0A%09%09if (!category.isEmpty()) %7B%0A%09%09%09category += %22.%22;%0A%09%09%7D%0A%09%09return new TranslationTextComponent(%22general.%22 + modid + %22.%22 + key + %22.tooltip.%22 + category + line, args);%0A%09%7D%0A%09%0A%7D%0A

Add tooltip creator in uteamcore