Class BeaconScreen.EffectButtonWidget

All Implemented Interfaces:
Drawable, Element
Enclosing class:
BeaconScreen

@Environment(CLIENT)
class BeaconScreen.EffectButtonWidget
extends BeaconScreen.BaseButtonWidget
Mappings:
Namespace Name
official dwd$c
intermediary net/minecraft/class_466$class_469
named net/minecraft/client/gui/screen/ingame/BeaconScreen$EffectButtonWidget
  • Field Details

    • effect

      private final StatusEffect effect
      Mappings:
      Namespace Name Mixin selector
      official b Ldwd$c;b:Laqn;
      intermediary field_2813 Lnet/minecraft/class_466$class_469;field_2813:Lnet/minecraft/class_1291;
      named effect Lnet/minecraft/client/gui/screen/ingame/BeaconScreen$EffectButtonWidget;effect:Lnet/minecraft/entity/effect/StatusEffect;
    • sprite

      private final Sprite sprite
      Mappings:
      Namespace Name Mixin selector
      official c Ldwd$c;c:Leru;
      intermediary field_18223 Lnet/minecraft/class_466$class_469;field_18223:Lnet/minecraft/class_1058;
      named sprite Lnet/minecraft/client/gui/screen/ingame/BeaconScreen$EffectButtonWidget;sprite:Lnet/minecraft/client/texture/Sprite;
    • primary

      private final boolean primary
      Mappings:
      Namespace Name Mixin selector
      official d Ldwd$c;d:Z
      intermediary field_17416 Lnet/minecraft/class_466$class_469;field_17416:Z
      named primary Lnet/minecraft/client/gui/screen/ingame/BeaconScreen$EffectButtonWidget;primary:Z
    • text

      private final Text text
      Mappings:
      Namespace Name Mixin selector
      official e Ldwd$c;e:Loi;
      intermediary field_26562 Lnet/minecraft/class_466$class_469;field_26562:Lnet/minecraft/class_2561;
      named text Lnet/minecraft/client/gui/screen/ingame/BeaconScreen$EffectButtonWidget;text:Lnet/minecraft/text/Text;
  • Constructor Details

    • EffectButtonWidget

      public EffectButtonWidget​(int x, int y, StatusEffect statusEffect, boolean primary)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldwd$c;<init>(Ldwd;IILaqn;Z)V
      intermediary <init> Lnet/minecraft/class_466$class_469;<init>(Lnet/minecraft/class_466;IILnet/minecraft/class_1291;Z)V
      named <init> Lnet/minecraft/client/gui/screen/ingame/BeaconScreen$EffectButtonWidget;<init>(Lnet/minecraft/client/gui/screen/ingame/BeaconScreen;IILnet/minecraft/entity/effect/StatusEffect;Z)V
  • Method Details

    • getTextForEffect

      private Text getTextForEffect​(StatusEffect effect, boolean primary)
      Mappings:
      Namespace Name Mixin selector
      official a Ldwd$c;a(Laqn;Z)Loi;
      intermediary method_30902 Lnet/minecraft/class_466$class_469;method_30902(Lnet/minecraft/class_1291;Z)Lnet/minecraft/class_2561;
      named getTextForEffect Lnet/minecraft/client/gui/screen/ingame/BeaconScreen$EffectButtonWidget;getTextForEffect(Lnet/minecraft/entity/effect/StatusEffect;Z)Lnet/minecraft/text/Text;
    • onPress

      public void onPress()
      Specified by:
      onPress in class AbstractPressableButtonWidget
      Mappings:
      Namespace Name Mixin selector
      official b Ldro;b()V
      intermediary method_25306 Lnet/minecraft/class_4264;method_25306()V
      named onPress Lnet/minecraft/client/gui/widget/AbstractPressableButtonWidget;onPress()V
    • renderToolTip

      public void renderToolTip​(MatrixStack matrices, int mouseX, int mouseY)
      Overrides:
      renderToolTip in class AbstractButtonWidget
      Mappings:
      Namespace Name Mixin selector
      official a Ldrs;a(Ldlr;II)V
      intermediary method_25352 Lnet/minecraft/class_339;method_25352(Lnet/minecraft/class_4587;II)V
      named renderToolTip Lnet/minecraft/client/gui/widget/AbstractButtonWidget;renderToolTip(Lnet/minecraft/client/util/math/MatrixStack;II)V
    • renderExtra

      protected void renderExtra​(MatrixStack matrices)
      Specified by:
      renderExtra in class BeaconScreen.BaseButtonWidget
      Mappings:
      Namespace Name Mixin selector
      official a Ldwd$d;a(Ldlr;)V
      intermediary method_18641 Lnet/minecraft/class_466$class_470;method_18641(Lnet/minecraft/class_4587;)V
      named renderExtra Lnet/minecraft/client/gui/screen/ingame/BeaconScreen$BaseButtonWidget;renderExtra(Lnet/minecraft/client/util/math/MatrixStack;)V