Class WidgetTooltipPositioner

java.lang.Object
net.minecraft.client.gui.tooltip.WidgetTooltipPositioner
All Implemented Interfaces:
TooltipPositioner

@Environment(CLIENT) public class WidgetTooltipPositioner extends Object implements TooltipPositioner
Mappings:
Namespace Name
official fbd
intermediary net/minecraft/class_8092
named net/minecraft/client/gui/tooltip/WidgetTooltipPositioner
  • Field Details

    • field_42159

      private static final int field_42159
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official c Lfbd;c:I
      intermediary field_42159 Lnet/minecraft/class_8092;field_42159:I
      named field_42159 Lnet/minecraft/client/gui/tooltip/WidgetTooltipPositioner;field_42159:I
    • field_42160

      private static final int field_42160
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official d Lfbd;d:I
      intermediary field_42160 Lnet/minecraft/class_8092;field_42160:I
      named field_42160 Lnet/minecraft/client/gui/tooltip/WidgetTooltipPositioner;field_42160:I
    • field_42157

      public static final int field_42157
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lfbd;a:I
      intermediary field_42157 Lnet/minecraft/class_8092;field_42157:I
      named field_42157 Lnet/minecraft/client/gui/tooltip/WidgetTooltipPositioner;field_42157:I
    • field_42158

      public static final int field_42158
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lfbd;b:I
      intermediary field_42158 Lnet/minecraft/class_8092;field_42158:I
      named field_42158 Lnet/minecraft/client/gui/tooltip/WidgetTooltipPositioner;field_42158:I
    • widget

      private final ClickableWidget widget
      Mappings:
      Namespace Name Mixin selector
      official e Lfbd;e:Leso;
      intermediary field_42161 Lnet/minecraft/class_8092;field_42161:Lnet/minecraft/class_339;
      named widget Lnet/minecraft/client/gui/tooltip/WidgetTooltipPositioner;widget:Lnet/minecraft/client/gui/widget/ClickableWidget;
  • Constructor Details

    • WidgetTooltipPositioner

      public WidgetTooltipPositioner(ClickableWidget widget)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lfbd;<init>(Leso;)V
      intermediary <init> Lnet/minecraft/class_8092;<init>(Lnet/minecraft/class_339;)V
      named <init> Lnet/minecraft/client/gui/tooltip/WidgetTooltipPositioner;<init>(Lnet/minecraft/client/gui/widget/ClickableWidget;)V
  • Method Details

    • getPosition

      public Vector2ic getPosition(int screenWidth, int screenHeight, int x, int y, int width, int height)
      Specified by:
      getPosition in interface TooltipPositioner
      Mappings:
      Namespace Name Mixin selector
      official a Lfbb;a(IIIIII)Lorg/joml/Vector2ic;
      intermediary method_47944 Lnet/minecraft/class_8000;method_47944(IIIIII)Lorg/joml/Vector2ic;
      named getPosition Lnet/minecraft/client/gui/tooltip/TooltipPositioner;getPosition(IIIIII)Lorg/joml/Vector2ic;
    • getOffsetY

      private static int getOffsetY(int tooltipY, int widgetY, int widgetHeight)
      Mappings:
      Namespace Name Mixin selector
      official a Lfbd;a(III)I
      intermediary method_48642 Lnet/minecraft/class_8092;method_48642(III)I
      named getOffsetY Lnet/minecraft/client/gui/tooltip/WidgetTooltipPositioner;getOffsetY(III)I