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.screens
Modifier and TypeMethodDescriptionprivate void
Screen.renderTooltipInternal
(PoseStack p_169384_, List<ClientTooltipComponent> p_169385_, int p_169386_, int p_169387_) -
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, @Nullable Font forcedFont, Font fallbackFont) static List<ClientTooltipComponent>
ForgeHooksClient.gatherTooltipComponents
(ItemStack stack, List<? extends FormattedText> textElements, Optional<TooltipComponent> itemComponent, int mouseX, int screenWidth, int screenHeight, @Nullable Font forcedFont, Font fallbackFont) Modifier and TypeMethodDescriptionstatic RenderTooltipEvent.Color
ForgeHooksClient.onRenderTooltipColor
(@NotNull ItemStack stack, PoseStack poseStack, int x, int y, @NotNull Font font, @NotNull List<ClientTooltipComponent> components) static RenderTooltipEvent.Pre
ForgeHooksClient.onRenderTooltipPre
(@NotNull ItemStack stack, PoseStack poseStack, int x, int y, int screenWidth, int screenHeight, @NotNull List<ClientTooltipComponent> components, @Nullable Font forcedFont, @NotNull Font fallbackFont) -
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, PoseStack poseStack, int x, int y, @NotNull Font fr, int background, int borderStart, int borderEnd, @NotNull List<ClientTooltipComponent> components) Pre
(@NotNull ItemStack stack, PoseStack poseStack, int x, int y, int screenWidth, int screenHeight, @NotNull Font font, @NotNull List<ClientTooltipComponent> components) RegisterClientTooltipComponentFactoriesEvent
(Map<Class<? extends TooltipComponent>, Function<TooltipComponent, ClientTooltipComponent>> factories) protected
RenderTooltipEvent
(@NotNull ItemStack itemStack, PoseStack poseStack, 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. -
Uses of ClientTooltipComponent in net.minecraftforge.debug.client
Modifier and TypeClassDescription(package private) static final record