Uses of Interface
net.minecraft.world.inventory.tooltip.TooltipComponent
Package
Description
Events fired only on the client-side, chiefly related to rendering and user interfaces (screens and input).
-
Uses of TooltipComponent in net.minecraft.client.gui
Modifier and TypeMethodDescriptionvoid
GuiGraphics.renderTooltip
(Font p_283128_, List<Component> p_282716_, Optional<TooltipComponent> p_281682_, int p_283678_, int p_281696_) void
GuiGraphics.renderTooltip
(Font font, List<Component> textComponents, Optional<TooltipComponent> tooltipComponent, ItemStack stack, int mouseX, int mouseY) -
Uses of TooltipComponent in net.minecraft.client.gui.screens.inventory.tooltip
Modifier and TypeMethodDescriptionstatic ClientTooltipComponent
ClientTooltipComponent.create
(TooltipComponent p_169951_) -
Uses of TooltipComponent in net.minecraft.world.inventory.tooltip
-
Uses of TooltipComponent in net.minecraft.world.item
Modifier and TypeMethodDescriptionBundleItem.getTooltipImage
(ItemStack p_150775_) Item.getTooltipImage
(ItemStack p_150902_) ItemStack.getTooltipImage()
-
Uses of TooltipComponent in net.minecraft.world.item.component
-
Uses of TooltipComponent in net.neoforged.neoforge.client
Modifier and TypeMethodDescriptionstatic List
<ClientTooltipComponent> ClientHooks.gatherTooltipComponents
(ItemStack stack, List<? extends FormattedText> textElements, Optional<TooltipComponent> itemComponent, int mouseX, int screenWidth, int screenHeight, Font fallbackFont) -
Uses of TooltipComponent in net.neoforged.neoforge.client.event
Modifier and TypeFieldDescriptionprivate final Map
<Class<? extends TooltipComponent>, Function<TooltipComponent, ClientTooltipComponent>> RegisterClientTooltipComponentFactoriesEvent.factories
private final Map
<Class<? extends TooltipComponent>, Function<TooltipComponent, ClientTooltipComponent>> RegisterClientTooltipComponentFactoriesEvent.factories
private final List
<com.mojang.datafixers.util.Either<FormattedText, TooltipComponent>> RenderTooltipEvent.GatherComponents.tooltipElements
Modifier and TypeMethodDescription<T extends TooltipComponent>
voidRegisterClientTooltipComponentFactoriesEvent.register
(Class<T> type, Function<? super T, ? extends ClientTooltipComponent> factory) Registers aClientTooltipComponent
factory for aTooltipComponent
.Modifier and TypeMethodDescriptionList
<com.mojang.datafixers.util.Either<FormattedText, TooltipComponent>> RenderTooltipEvent.GatherComponents.getTooltipElements()
Returns the modifiable list of elements to be rendered on the tooltip.ModifierConstructorDescriptionGatherComponents
(ItemStack itemStack, int screenWidth, int screenHeight, List<com.mojang.datafixers.util.Either<FormattedText, TooltipComponent>> tooltipElements, int maxWidth) RegisterClientTooltipComponentFactoriesEvent
(Map<Class<? extends TooltipComponent>, Function<TooltipComponent, ClientTooltipComponent>> factories) RegisterClientTooltipComponentFactoriesEvent
(Map<Class<? extends TooltipComponent>, Function<TooltipComponent, ClientTooltipComponent>> factories) -
Uses of TooltipComponent in net.neoforged.neoforge.client.gui
Modifier and TypeFieldDescriptionprivate static com.google.common.collect.ImmutableMap
<Class<? extends TooltipComponent>, Function<TooltipComponent, ClientTooltipComponent>> ClientTooltipComponentManager.FACTORIES
private static com.google.common.collect.ImmutableMap
<Class<? extends TooltipComponent>, Function<TooltipComponent, ClientTooltipComponent>> ClientTooltipComponentManager.FACTORIES
Modifier and TypeMethodDescriptionstatic @Nullable ClientTooltipComponent
ClientTooltipComponentManager.createClientTooltipComponent
(TooltipComponent component) Creates a client component for the given argument, or null if unsupported. -
Uses of TooltipComponent in net.neoforged.neoforge.oldtest.client
Modifier and TypeClassDescription(package private) static final record
Modifier and TypeMethodDescriptionCustomTooltipTest.CustomItemWithTooltip.getTooltipImage
(ItemStack stack)