Uses of Interface
net.minecraft.client.gui.screens.inventory.tooltip.ClientTooltipComponent
Package
Description
Events fired only on the client-side, chiefly related to rendering and user interfaces (screens and input).
-
Uses of ClientTooltipComponent in net.minecraft.client.gui
Modifier and TypeMethodDescriptionprivate void
GuiGraphics.renderTooltipInternal
(Font p_282675_, List<ClientTooltipComponent> p_282615_, int p_283230_, int p_283417_, ClientTooltipPositioner p_282442_) -
Uses of ClientTooltipComponent in net.minecraft.client.gui.screens.inventory.tooltip
Modifier and TypeMethodDescriptionstatic ClientTooltipComponent
ClientTooltipComponent.create
(FormattedCharSequence p_169949_) static ClientTooltipComponent
ClientTooltipComponent.create
(TooltipComponent p_169951_) -
Uses of ClientTooltipComponent in net.minecraftforge.client
Modifier and TypeMethodDescriptionstatic List<ClientTooltipComponent>
ForgeHooksClient.gatherTooltipComponents
(ItemStack stack, List<? extends FormattedText> textElements, int mouseX, int screenWidth, int screenHeight, Font fallbackFont) static List<ClientTooltipComponent>
ForgeHooksClient.gatherTooltipComponents
(ItemStack stack, List<? extends FormattedText> textElements, Optional<TooltipComponent> itemComponent, int mouseX, int screenWidth, int screenHeight, Font fallbackFont) private static Stream<ClientTooltipComponent>
ForgeHooksClient.splitLine
(FormattedText text, Font font, int maxWidth) Modifier and TypeMethodDescriptionstatic RenderTooltipEvent.Color
ForgeHooksClient.onRenderTooltipColor
(@NotNull ItemStack stack, GuiGraphics graphics, int x, int y, @NotNull Font font, @NotNull List<ClientTooltipComponent> components) static RenderTooltipEvent.Pre
ForgeHooksClient.onRenderTooltipPre
(@NotNull ItemStack stack, GuiGraphics graphics, int x, int y, int screenWidth, int screenHeight, @NotNull List<ClientTooltipComponent> components, @NotNull Font fallbackFont, @NotNull ClientTooltipPositioner positioner) -
Uses of ClientTooltipComponent in net.minecraftforge.client.event
Modifier and TypeFieldDescriptionprotected final List<ClientTooltipComponent>
RenderTooltipEvent.components
private final Map<Class<? extends TooltipComponent>,
Function<TooltipComponent, ClientTooltipComponent>> RegisterClientTooltipComponentFactoriesEvent.factories
Modifier and TypeMethodDescription@NotNull List<ClientTooltipComponent>
RenderTooltipEvent.getComponents()
Returns the unmodifiable list of tooltip components.Modifier and TypeMethodDescription<T extends TooltipComponent>
voidRegisterClientTooltipComponentFactoriesEvent.register
(Class<T> type, Function<? super T, ? extends ClientTooltipComponent> factory) Registers aClientTooltipComponent
factory for aTooltipComponent
.ModifierConstructorDescriptionColor
(@NotNull ItemStack stack, GuiGraphics graphics, int x, int y, @NotNull Font fr, int background, int borderStart, int borderEnd, @NotNull List<ClientTooltipComponent> components) Pre
(@NotNull ItemStack stack, GuiGraphics graphics, int x, int y, int screenWidth, int screenHeight, @NotNull Font font, @NotNull List<ClientTooltipComponent> components, @NotNull ClientTooltipPositioner positioner) RegisterClientTooltipComponentFactoriesEvent
(Map<Class<? extends TooltipComponent>, Function<TooltipComponent, ClientTooltipComponent>> factories) protected
RenderTooltipEvent
(@NotNull ItemStack itemStack, GuiGraphics graphics, int x, int y, @NotNull Font font, @NotNull List<ClientTooltipComponent> components) -
Uses of ClientTooltipComponent in net.minecraftforge.client.gui
Modifier and TypeFieldDescriptionprivate 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.