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
named net/minecraft/client/gui/tooltip/WidgetTooltipPositioner
intermediary net/minecraft/class_8092
official fpz
  • Field Details

    • field_42159

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

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

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

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

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

    • WidgetTooltipPositioner

      public WidgetTooltipPositioner(ScreenRect focus)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/gui/tooltip/WidgetTooltipPositioner;<init>(Lnet/minecraft/client/gui/ScreenRect;)V
      intermediary <init> Lnet/minecraft/class_8092;<init>(Lnet/minecraft/class_8030;)V
      official <init> Lfpz;<init>(Lfll;)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
      named getPosition Lnet/minecraft/client/gui/tooltip/TooltipPositioner;getPosition(IIIIII)Lorg/joml/Vector2ic;
      intermediary method_47944 Lnet/minecraft/class_8000;method_47944(IIIIII)Lorg/joml/Vector2ic;
      official a Lfpx;a(IIIIII)Lorg/joml/Vector2ic;
    • getOffsetY

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