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.screens
Modifier and TypeMethodDescriptionvoid
Screen.renderTooltip
(PoseStack p_169389_, List<Component> p_169390_, Optional<TooltipComponent> p_169391_, int p_169392_, int p_169393_) void
Screen.renderTooltip
(PoseStack poseStack, List<Component> textComponents, Optional<TooltipComponent> tooltipComponent, int x, int y, Font font) void
Screen.renderTooltip
(PoseStack poseStack, List<Component> textComponents, Optional<TooltipComponent> tooltipComponent, int x, int y, Font font, ItemStack stack) void
Screen.renderTooltip
(PoseStack poseStack, List<Component> textComponents, Optional<TooltipComponent> tooltipComponent, int x, int y, ItemStack stack) -
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.minecraftforge.client
Modifier and TypeMethodDescriptionstatic List<ClientTooltipComponent>
ForgeHooksClient.gatherTooltipComponents
(ItemStack stack, List<? extends FormattedText> textElements, Optional<TooltipComponent> itemComponent, int mouseX, int screenWidth, int screenHeight, @Nullable Font forcedFont, Font fallbackFont) -
Uses of TooltipComponent in net.minecraftforge.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.minecraftforge.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.minecraftforge.debug.client
Modifier and TypeClassDescription(package private) static final record
Modifier and TypeMethodDescriptionCustomTooltipTest.CustomItemWithTooltip.getTooltipImage
(ItemStack stack)