Package net.minecraftforge.client.gui
Class ClientTooltipComponentManager
java.lang.Object
net.minecraftforge.client.gui.ClientTooltipComponentManager
Manager for
ClientTooltipComponent
factories.
Provides a lookup.
-
Field Summary
Modifier and TypeFieldDescriptionprivate static com.google.common.collect.ImmutableMap
<Class<? extends TooltipComponent>, Function<TooltipComponent, ClientTooltipComponent>> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable ClientTooltipComponent
createClientTooltipComponent
(TooltipComponent component) Creates a client component for the given argument, or null if unsupported.static void
init()
-
Field Details
-
FACTORIES
private static com.google.common.collect.ImmutableMap<Class<? extends TooltipComponent>,Function<TooltipComponent, FACTORIESClientTooltipComponent>>
-
-
Constructor Details
-
ClientTooltipComponentManager
private ClientTooltipComponentManager()
-
-
Method Details
-
createClientTooltipComponent
@Nullable public static @Nullable ClientTooltipComponent createClientTooltipComponent(TooltipComponent component) Creates a client component for the given argument, or null if unsupported. -
init
@Internal public static void init()
-