Class Tooltips

java.lang.Object
com.wdiscute.libtooltips.Tooltips

public class Tooltips extends Object
  • Field Details

  • Constructor Details

    • Tooltips

      public Tooltips()
  • Method Details

    • registerProcessor

      public static void registerProcessor(String tag, org.apache.commons.lang3.function.TriFunction<String,net.minecraft.world.item.ItemStack,net.minecraft.world.entity.Entity,net.minecraft.network.chat.MutableComponent> processor)
    • hasTags

      public static boolean hasTags(String input)
    • resolveTagsToComponentFromTranslationKey

      public static net.minecraft.network.chat.MutableComponent resolveTagsToComponentFromTranslationKey(String translationKey, @Nullable net.minecraft.world.item.ItemStack stack, @Nullable net.minecraft.world.entity.Entity entity)
    • resolveTagsToComponentFromTranslationKey

      public static net.minecraft.network.chat.MutableComponent resolveTagsToComponentFromTranslationKey(String translationKey)
    • resolveTagsToComponent

      public static net.minecraft.network.chat.MutableComponent resolveTagsToComponent(String input)
    • resolveTagsToComponent

      public static net.minecraft.network.chat.MutableComponent resolveTagsToComponent(String input, @Nullable net.minecraft.world.item.ItemStack stack, @Nullable net.minecraft.world.entity.Entity entity)
    • modifyItemTooltip

      public static void modifyItemTooltip(net.minecraftforge.event.entity.player.ItemTooltipEvent event)