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 ffw
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 Lffw;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 Lffw;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 Lffw;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 Lffw;b:I
      intermediary field_42158 Lnet/minecraft/class_8092;field_42158:I
      named field_42158 Lnet/minecraft/client/gui/tooltip/WidgetTooltipPositioner;field_42158:I
    • focus

      private final ScreenRect focus
      Mappings:
      Namespace Name Mixin selector
      official e Lffw;e:Lfbj;
      intermediary field_46723 Lnet/minecraft/class_8092;field_46723:Lnet/minecraft/class_8030;
      named focus Lnet/minecraft/client/gui/tooltip/WidgetTooltipPositioner;focus:Lnet/minecraft/client/gui/ScreenRect;
  • Constructor Details

    • WidgetTooltipPositioner

      public WidgetTooltipPositioner(ScreenRect focus)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lffw;<init>(Lfbj;)V
      intermediary <init> Lnet/minecraft/class_8092;<init>(Lnet/minecraft/class_8030;)V
      named <init> Lnet/minecraft/client/gui/tooltip/WidgetTooltipPositioner;<init>(Lnet/minecraft/client/gui/ScreenRect;)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 Lffu;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 Lffw;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