Class Tooltip

java.lang.Object
com.beansgalaxy.backpacks.items.Tooltip

public class Tooltip extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    appendTooltip(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.TooltipFlag flag, List<net.minecraft.network.chat.Component> components, Traits.LocalData traits, net.minecraft.world.item.ItemStack instance)
     
    static Optional<net.minecraft.world.inventory.tooltip.TooltipComponent>
    get(net.minecraft.world.item.ItemStack stack)
     
    static int
    getBarWidth(net.minecraft.world.item.ItemStack stack)
     
    static List<net.minecraft.resources.ResourceLocation>
     
    static boolean
    isBarVisible(net.minecraft.world.item.ItemStack stack)
     
    static boolean
     
    static net.minecraft.network.chat.Component
    name(net.minecraft.world.item.ItemStack stack)
    LORE AND NAME
    static void
    nullTitle(List<net.minecraft.network.chat.Component> components)
     
    static void
    playSound(Traits.Sound sound, PlaySound playSound)
     
    static void
    playSound(Traits.Sound sound, PlaySound playSound, float volume)
     
    static void
    playSound(net.minecraft.sounds.SoundEvent soundEvent, float pitch, float volume)
     
    static void
    pushInventoryMessage(net.minecraft.network.chat.Component msg)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • barColor

      public static int barColor
  • Constructor Details

    • Tooltip

      public Tooltip()
  • Method Details

    • get

      public static Optional<net.minecraft.world.inventory.tooltip.TooltipComponent> get(net.minecraft.world.item.ItemStack stack)
    • name

      public static net.minecraft.network.chat.Component name(net.minecraft.world.item.ItemStack stack)
      LORE AND NAME
    • nullTitle

      public static void nullTitle(List<net.minecraft.network.chat.Component> components)
    • isBarVisible

      public static boolean isBarVisible(net.minecraft.world.item.ItemStack stack)
    • getBarWidth

      public static int getBarWidth(net.minecraft.world.item.ItemStack stack)
    • playSound

      public static void playSound(Traits.Sound sound, PlaySound playSound)
    • playSound

      public static void playSound(Traits.Sound sound, PlaySound playSound, float volume)
    • playSound

      public static void playSound(net.minecraft.sounds.SoundEvent soundEvent, float pitch, float volume)
    • appendTooltip

      public static void appendTooltip(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.TooltipFlag flag, List<net.minecraft.network.chat.Component> components, Traits.LocalData traits, net.minecraft.world.item.ItemStack instance)
    • getTextures

      public static List<net.minecraft.resources.ResourceLocation> getTextures()
    • isCuriosMenu

      public static boolean isCuriosMenu()
    • pushInventoryMessage

      public static void pushInventoryMessage(net.minecraft.network.chat.Component msg)