Class PackListWidget.ResourcePackEntry

All Implemented Interfaces:
Element, Narratable, Navigable, ListWidgetEntry, Widget
Enclosing class:
PackListWidget

@Environment(CLIENT) public class PackListWidget.ResourcePackEntry extends PackListWidget.Entry implements ListWidgetEntry
Mappings:
Namespace Name
named net/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry
intermediary net/minecraft/class_521$class_4271
official guv$c
  • Field Details

    • field_32403

      private static final int field_32403
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_32403 Lnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;field_32403:I
      intermediary field_32403 Lnet/minecraft/class_521$class_4271;field_32403:I
      official e Lguv$c;e:I
    • field_64204

      public static final int field_64204
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_64204 Lnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;field_64204:I
      intermediary field_64204 Lnet/minecraft/class_521$class_4271;field_64204:I
      official b Lguv$c;b:I
    • widget

      private final PackListWidget widget
      Mappings:
      Namespace Name Mixin selector
      named widget Lnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;widget:Lnet/minecraft/client/gui/screen/pack/PackListWidget;
      intermediary field_19130 Lnet/minecraft/class_521$class_4271;field_19130:Lnet/minecraft/class_521;
      official f Lguv$c;f:Lguv;
    • client

      protected final MinecraftClient client
      Mappings:
      Namespace Name Mixin selector
      named client Lnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;client:Lnet/minecraft/client/MinecraftClient;
      intermediary field_19128 Lnet/minecraft/class_521$class_4271;field_19128:Lnet/minecraft/class_310;
      official c Lguv$c;c:Lgds;
    • pack

      private final ResourcePackOrganizer.Pack pack
      Mappings:
      Namespace Name Mixin selector
      named pack Lnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;pack:Lnet/minecraft/client/gui/screen/pack/ResourcePackOrganizer$Pack;
      intermediary field_19129 Lnet/minecraft/class_521$class_4271;field_19129:Lnet/minecraft/class_5369$class_5371;
      official g Lguv$c;g:Lgut$a;
    • field_64205

      private final TextWidget field_64205
      Mappings:
      Namespace Name Mixin selector
      named field_64205 Lnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;field_64205:Lnet/minecraft/client/gui/widget/TextWidget;
      intermediary field_64205 Lnet/minecraft/class_521$class_4271;field_64205:Lnet/minecraft/class_7842;
      official i Lguv$c;i:Lgiw;
    • field_64206

      private final MultilineTextWidget field_64206
      Mappings:
      Namespace Name Mixin selector
      named field_64206 Lnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;field_64206:Lnet/minecraft/client/gui/widget/MultilineTextWidget;
      intermediary field_64206 Lnet/minecraft/class_521$class_4271;field_64206:Lnet/minecraft/class_7940;
      official j Lguv$c;j:Lgig;
  • Constructor Details

    • ResourcePackEntry

      public ResourcePackEntry(MinecraftClient client, PackListWidget widget, ResourcePackOrganizer.Pack pack)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;<init>(Lnet/minecraft/client/gui/screen/pack/PackListWidget;Lnet/minecraft/client/MinecraftClient;Lnet/minecraft/client/gui/screen/pack/PackListWidget;Lnet/minecraft/client/gui/screen/pack/ResourcePackOrganizer$Pack;)V
      intermediary <init> Lnet/minecraft/class_521$class_4271;<init>(Lnet/minecraft/class_521;Lnet/minecraft/class_310;Lnet/minecraft/class_521;Lnet/minecraft/class_5369$class_5371;)V
      official <init> Lguv$c;<init>(Lguv;Lgds;Lguv;Lgut$a;)V
  • Method Details

    • getNarration

      public Text getNarration()
      Specified by:
      getNarration in class AlwaysSelectedEntryListWidget.Entry<PackListWidget.Entry>
      Mappings:
      Namespace Name Mixin selector
      named getNarration Lnet/minecraft/client/gui/widget/AlwaysSelectedEntryListWidget$Entry;getNarration()Lnet/minecraft/text/Text;
      intermediary method_37006 Lnet/minecraft/class_4280$class_4281;method_37006()Lnet/minecraft/class_2561;
      official a Lgii$a;a()Lyi;
    • render

      public void render(DrawContext context, int mouseX, int mouseY, boolean hovered, float deltaTicks)
      Renders an entry in a list.
      Specified by:
      render in class EntryListWidget.Entry<PackListWidget.Entry>
      Mappings:
      Namespace Name Mixin selector
      named render Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;render(Lnet/minecraft/client/gui/DrawContext;IIZF)V
      intermediary method_25343 Lnet/minecraft/class_350$class_351;method_25343(Lnet/minecraft/class_332;IIZF)V
      official a Lghf$a;a(Lggy;IIZF)V
    • mouseClicked

      public boolean mouseClicked(Click click, boolean doubled)
      Callback for when a mouse button down event has been captured. The button number is identified by the constants in GLFW class.
      Specified by:
      mouseClicked in interface Element
      Overrides:
      mouseClicked in class AlwaysSelectedEntryListWidget.Entry<PackListWidget.Entry>
      Returns:
      true to indicate that the event handling is successful/valid
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named mouseClicked Lnet/minecraft/client/gui/Element;mouseClicked(Lnet/minecraft/client/gui/Click;Z)Z
      intermediary method_25402 Lnet/minecraft/class_364;method_25402(Lnet/minecraft/class_11909;Z)Z
      official a Lgku;a(Lgxi;Z)Z
    • keyPressed

      public boolean keyPressed(KeyInput input)
      Callback for when a key down event has been captured. The key code is identified by the constants in GLFW class.
      Specified by:
      keyPressed in interface Element
      Returns:
      true to indicate that the event handling is successful/valid
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named keyPressed Lnet/minecraft/client/gui/Element;keyPressed(Lnet/minecraft/client/input/KeyInput;)Z
      intermediary method_25404 Lnet/minecraft/class_364;method_25404(Lnet/minecraft/class_11908;)Z
      official a Lgku;a(Lgxh;)Z
    • isSelectable

      private boolean isSelectable()
      Mappings:
      Namespace Name Mixin selector
      named isSelectable Lnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;isSelectable()Z
      intermediary method_20152 Lnet/minecraft/class_521$class_4271;method_20152()Z
      official e Lguv$c;e()Z
    • toggle

      public void toggle()
      Mappings:
      Namespace Name Mixin selector
      named toggle Lnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;toggle()V
      intermediary method_48280 Lnet/minecraft/class_521$class_4271;method_48280()V
      official c Lguv$c;c()V
    • moveTowardStart

      private void moveTowardStart()
      Mappings:
      Namespace Name Mixin selector
      named moveTowardStart Lnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;moveTowardStart()V
      intermediary method_48281 Lnet/minecraft/class_521$class_4271;method_48281()V
      official f Lguv$c;f()V
    • moveTowardEnd

      private void moveTowardEnd()
      Mappings:
      Namespace Name Mixin selector
      named moveTowardEnd Lnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;moveTowardEnd()V
      intermediary method_48282 Lnet/minecraft/class_521$class_4271;method_48282()V
      official t Lguv$c;t()V
    • enable

      private void enable()
      Mappings:
      Namespace Name Mixin selector
      named enable Lnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;enable()V
      intermediary method_48478 Lnet/minecraft/class_521$class_4271;method_48478()V
      official u Lguv$c;u()V
    • getName

      public String getName()
      Specified by:
      getName in class PackListWidget.Entry
      Mappings:
      Namespace Name Mixin selector
      named getName Lnet/minecraft/client/gui/screen/pack/PackListWidget$Entry;getName()Ljava/lang/String;
      intermediary method_48279 Lnet/minecraft/class_521$class_11778;method_48279()Ljava/lang/String;
      official b Lguv$a;b()Ljava/lang/String;
    • isClickable

      public boolean isClickable()
      Specified by:
      isClickable in interface Element
      Mappings:
      Namespace Name Mixin selector
      named isClickable Lnet/minecraft/client/gui/Element;isClickable()Z
      intermediary method_72784 Lnet/minecraft/class_364;method_72784()Z
      official H Lgku;H()Z