Package com.beansgalaxy.backpacks.items
Class Tooltip
java.lang.Object
com.beansgalaxy.backpacks.items.Tooltip
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidappendTooltip(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 intgetBarWidth(net.minecraft.world.item.ItemStack stack) static List<net.minecraft.resources.ResourceLocation>static booleanisBarVisible(net.minecraft.world.item.ItemStack stack) static booleanstatic net.minecraft.network.chat.Componentname(net.minecraft.world.item.ItemStack stack) LORE AND NAMEstatic voidstatic voidplaySound(Traits.Sound sound, PlaySound playSound) static voidplaySound(Traits.Sound sound, PlaySound playSound, float volume) static voidplaySound(net.minecraft.sounds.SoundEvent soundEvent, float pitch, float volume) static voidpushInventoryMessage(net.minecraft.network.chat.Component msg)
-
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
-
isBarVisible
public static boolean isBarVisible(net.minecraft.world.item.ItemStack stack) -
getBarWidth
public static int getBarWidth(net.minecraft.world.item.ItemStack stack) -
playSound
-
playSound
-
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
-
isCuriosMenu
public static boolean isCuriosMenu() -
pushInventoryMessage
public static void pushInventoryMessage(net.minecraft.network.chat.Component msg)
-