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 evx
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 Levx;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 Levx;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 Levx;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 Levx;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 Levx;e:Lenz;
      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> Levx;<init>(Lenz;)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(Screen screen, int x, int y, int width, int height)
      Specified by:
      getPosition in interface TooltipPositioner
      Mappings:
      Namespace Name Mixin selector
      official a Levv;a(Letd;IIII)Lorg/joml/Vector2ic;
      intermediary method_47944 Lnet/minecraft/class_8000;method_47944(Lnet/minecraft/class_437;IIII)Lorg/joml/Vector2ic;
      named getPosition Lnet/minecraft/client/gui/tooltip/TooltipPositioner;getPosition(Lnet/minecraft/client/gui/screen/Screen;IIII)Lorg/joml/Vector2ic;
    • getOffsetY

      private static int getOffsetY(int tooltipY, int widgetY, int widgetHeight)
      Mappings:
      Namespace Name Mixin selector
      official a Levx;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