Class PackScreen

All Implemented Interfaces:
Drawable, Element, Navigable, ParentElement

@Environment(CLIENT) public class PackScreen extends Screen
Mappings:
Namespace Name
official fbp
intermediary net/minecraft/class_5375
named net/minecraft/client/gui/screen/pack/PackScreen
  • Field Details

    • LOGGER

      static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official a Lfbp;a:Lorg/slf4j/Logger;
      intermediary field_25464 Lnet/minecraft/class_5375;field_25464:Lorg/slf4j/Logger;
      named LOGGER Lnet/minecraft/client/gui/screen/pack/PackScreen;LOGGER:Lorg/slf4j/Logger;
    • field_32395

      private static final int field_32395
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lfbp;b:I
      intermediary field_32395 Lnet/minecraft/class_5375;field_32395:I
      named field_32395 Lnet/minecraft/client/gui/screen/pack/PackScreen;field_32395:I
    • DROP_INFO

      private static final Text DROP_INFO
      Mappings:
      Namespace Name Mixin selector
      official c Lfbp;c:Ltl;
      intermediary field_25465 Lnet/minecraft/class_5375;field_25465:Lnet/minecraft/class_2561;
      named DROP_INFO Lnet/minecraft/client/gui/screen/pack/PackScreen;DROP_INFO:Lnet/minecraft/text/Text;
    • FOLDER_INFO

      private static final Text FOLDER_INFO
      Mappings:
      Namespace Name Mixin selector
      official k Lfbp;k:Ltl;
      intermediary field_25466 Lnet/minecraft/class_5375;field_25466:Lnet/minecraft/class_2561;
      named FOLDER_INFO Lnet/minecraft/client/gui/screen/pack/PackScreen;FOLDER_INFO:Lnet/minecraft/text/Text;
    • field_32396

      private static final int field_32396
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official l Lfbp;l:I
      intermediary field_32396 Lnet/minecraft/class_5375;field_32396:I
      named field_32396 Lnet/minecraft/client/gui/screen/pack/PackScreen;field_32396:I
    • UNKNOWN_PACK

      private static final Identifier UNKNOWN_PACK
      Mappings:
      Namespace Name Mixin selector
      official m Lfbp;m:Laew;
      intermediary field_25786 Lnet/minecraft/class_5375;field_25786:Lnet/minecraft/class_2960;
      named UNKNOWN_PACK Lnet/minecraft/client/gui/screen/pack/PackScreen;UNKNOWN_PACK:Lnet/minecraft/util/Identifier;
    • organizer

      private final ResourcePackOrganizer organizer
      Mappings:
      Namespace Name Mixin selector
      official n Lfbp;n:Lfbo;
      intermediary field_25468 Lnet/minecraft/class_5375;field_25468:Lnet/minecraft/class_5369;
      named organizer Lnet/minecraft/client/gui/screen/pack/PackScreen;organizer:Lnet/minecraft/client/gui/screen/pack/ResourcePackOrganizer;
    • directoryWatcher

      Mappings:
      Namespace Name Mixin selector
      official o Lfbp;o:Lfbp$a;
      intermediary field_25787 Lnet/minecraft/class_5375;field_25787:Lnet/minecraft/class_5375$class_5426;
      named directoryWatcher Lnet/minecraft/client/gui/screen/pack/PackScreen;directoryWatcher:Lnet/minecraft/client/gui/screen/pack/PackScreen$DirectoryWatcher;
    • refreshTimeout

      private long refreshTimeout
      Mappings:
      Namespace Name Mixin selector
      official p Lfbp;p:J
      intermediary field_25788 Lnet/minecraft/class_5375;field_25788:J
      named refreshTimeout Lnet/minecraft/client/gui/screen/pack/PackScreen;refreshTimeout:J
    • availablePackList

      private PackListWidget availablePackList
      Mappings:
      Namespace Name Mixin selector
      official q Lfbp;q:Lfbq;
      intermediary field_25472 Lnet/minecraft/class_5375;field_25472:Lnet/minecraft/class_521;
      named availablePackList Lnet/minecraft/client/gui/screen/pack/PackScreen;availablePackList:Lnet/minecraft/client/gui/screen/pack/PackListWidget;
    • selectedPackList

      private PackListWidget selectedPackList
      Mappings:
      Namespace Name Mixin selector
      official s Lfbp;s:Lfbq;
      intermediary field_25473 Lnet/minecraft/class_5375;field_25473:Lnet/minecraft/class_521;
      named selectedPackList Lnet/minecraft/client/gui/screen/pack/PackScreen;selectedPackList:Lnet/minecraft/client/gui/screen/pack/PackListWidget;
    • file

      private final Path file
      Mappings:
      Namespace Name Mixin selector
      official t Lfbp;t:Ljava/nio/file/Path;
      intermediary field_25474 Lnet/minecraft/class_5375;field_25474:Ljava/nio/file/Path;
      named file Lnet/minecraft/client/gui/screen/pack/PackScreen;file:Ljava/nio/file/Path;
    • doneButton

      private ButtonWidget doneButton
      Mappings:
      Namespace Name Mixin selector
      official u Lfbp;u:Lesq;
      intermediary field_25475 Lnet/minecraft/class_5375;field_25475:Lnet/minecraft/class_4185;
      named doneButton Lnet/minecraft/client/gui/screen/pack/PackScreen;doneButton:Lnet/minecraft/client/gui/widget/ButtonWidget;
    • iconTextures

      private final Map<String,Identifier> iconTextures
      Mappings:
      Namespace Name Mixin selector
      official v Lfbp;v:Ljava/util/Map;
      intermediary field_25789 Lnet/minecraft/class_5375;field_25789:Ljava/util/Map;
      named iconTextures Lnet/minecraft/client/gui/screen/pack/PackScreen;iconTextures:Ljava/util/Map;
  • Constructor Details

    • PackScreen

      public PackScreen(ResourcePackManager resourcePackManager, Consumer<ResourcePackManager> applier, Path file, Text title)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lfbp;<init>(Lane;Ljava/util/function/Consumer;Ljava/nio/file/Path;Ltl;)V
      intermediary <init> Lnet/minecraft/class_5375;<init>(Lnet/minecraft/class_3283;Ljava/util/function/Consumer;Ljava/nio/file/Path;Lnet/minecraft/class_2561;)V
      named <init> Lnet/minecraft/client/gui/screen/pack/PackScreen;<init>(Lnet/minecraft/resource/ResourcePackManager;Ljava/util/function/Consumer;Ljava/nio/file/Path;Lnet/minecraft/text/Text;)V
  • Method Details

    • close

      public void close()
      Overrides:
      close in class Screen
      Mappings:
      Namespace Name Mixin selector
      official az_ Leyk;az_()V
      intermediary method_25419 Lnet/minecraft/class_437;method_25419()V
      named close Lnet/minecraft/client/gui/screen/Screen;close()V
    • closeDirectoryWatcher

      private void closeDirectoryWatcher()
      Mappings:
      Namespace Name Mixin selector
      official D Lfbp;D()V
      intermediary method_30291 Lnet/minecraft/class_5375;method_30291()V
      named closeDirectoryWatcher Lnet/minecraft/client/gui/screen/pack/PackScreen;closeDirectoryWatcher()V
    • init

      protected void init()
      Called when a screen should be initialized.

      This method is called when this screen is opened or resized.

      This should call Screen.setInitialFocus(net.minecraft.client.gui.Element) to set the element that is initially focused.

      Overrides:
      init in class Screen
      Mappings:
      Namespace Name Mixin selector
      official aH_ Leyk;aH_()V
      intermediary method_25426 Lnet/minecraft/class_437;method_25426()V
      named init Lnet/minecraft/client/gui/screen/Screen;init()V
    • tick

      public void tick()
      Overrides:
      tick in class Screen
      Mappings:
      Namespace Name Mixin selector
      official c Leyk;c()V
      intermediary method_25393 Lnet/minecraft/class_437;method_25393()V
      named tick Lnet/minecraft/client/gui/screen/Screen;tick()V
    • updatePackLists

      private void updatePackLists()
      Mappings:
      Namespace Name Mixin selector
      official E Lfbp;E()V
      intermediary method_29678 Lnet/minecraft/class_5375;method_29678()V
      named updatePackLists Lnet/minecraft/client/gui/screen/pack/PackScreen;updatePackLists()V
    • updatePackList

      private void updatePackList(PackListWidget widget, Stream<ResourcePackOrganizer.Pack> packs)
      Mappings:
      Namespace Name Mixin selector
      official a Lfbp;a(Lfbq;Ljava/util/stream/Stream;)V
      intermediary method_29673 Lnet/minecraft/class_5375;method_29673(Lnet/minecraft/class_521;Ljava/util/stream/Stream;)V
      named updatePackList Lnet/minecraft/client/gui/screen/pack/PackScreen;updatePackList(Lnet/minecraft/client/gui/screen/pack/PackListWidget;Ljava/util/stream/Stream;)V
    • switchFocusedList

      public void switchFocusedList(PackListWidget listWidget)
      Mappings:
      Namespace Name Mixin selector
      official a Lfbp;a(Lfbq;)V
      intermediary method_48277 Lnet/minecraft/class_5375;method_48277(Lnet/minecraft/class_521;)V
      named switchFocusedList Lnet/minecraft/client/gui/screen/pack/PackScreen;switchFocusedList(Lnet/minecraft/client/gui/screen/pack/PackListWidget;)V
    • clearSelection

      public void clearSelection()
      Mappings:
      Namespace Name Mixin selector
      official l Lfbp;l()V
      intermediary method_48278 Lnet/minecraft/class_5375;method_48278()V
      named clearSelection Lnet/minecraft/client/gui/screen/pack/PackScreen;clearSelection()V
    • refresh

      private void refresh()
      Mappings:
      Namespace Name Mixin selector
      official F Lfbp;F()V
      intermediary method_29680 Lnet/minecraft/class_5375;method_29680()V
      named refresh Lnet/minecraft/client/gui/screen/pack/PackScreen;refresh()V
    • render

      public void render(DrawContext context, int mouseX, int mouseY, float delta)
      Specified by:
      render in interface Drawable
      Overrides:
      render in class Screen
      Mappings:
      Namespace Name Mixin selector
      official a Lets;a(Lesf;IIF)V
      intermediary method_25394 Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_332;IIF)V
      named render Lnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/gui/DrawContext;IIF)V
    • renderBackground

      public void renderBackground(DrawContext context, int mouseX, int mouseY, float delta)
      Renders the background of this screen.

      If the client is in a world, renders the translucent background gradient. Otherwise renders the background texture.

      Overrides:
      renderBackground in class Screen
      Mappings:
      Namespace Name Mixin selector
      official b Leyk;b(Lesf;IIF)V
      intermediary method_25420 Lnet/minecraft/class_437;method_25420(Lnet/minecraft/class_332;IIF)V
      named renderBackground Lnet/minecraft/client/gui/screen/Screen;renderBackground(Lnet/minecraft/client/gui/DrawContext;IIF)V
    • copyPacks

      protected static void copyPacks(MinecraftClient client, List<Path> srcPaths, Path destPath)
      Mappings:
      Namespace Name Mixin selector
      official a Lfbp;a(Leqv;Ljava/util/List;Ljava/nio/file/Path;)V
      intermediary method_29669 Lnet/minecraft/class_5375;method_29669(Lnet/minecraft/class_310;Ljava/util/List;Ljava/nio/file/Path;)V
      named copyPacks Lnet/minecraft/client/gui/screen/pack/PackScreen;copyPacks(Lnet/minecraft/client/MinecraftClient;Ljava/util/List;Ljava/nio/file/Path;)V
    • filesDragged

      public void filesDragged(List<Path> paths)
      Overrides:
      filesDragged in class Screen
      Mappings:
      Namespace Name Mixin selector
      official a Leyk;a(Ljava/util/List;)V
      intermediary method_29638 Lnet/minecraft/class_437;method_29638(Ljava/util/List;)V
      named filesDragged Lnet/minecraft/client/gui/screen/Screen;filesDragged(Ljava/util/List;)V
    • streamFileNames

      private static Stream<String> streamFileNames(Collection<Path> paths)
      Mappings:
      Namespace Name Mixin selector
      official a Lfbp;a(Ljava/util/Collection;)Ljava/util/stream/Stream;
      intermediary method_52760 Lnet/minecraft/class_5375;method_52760(Ljava/util/Collection;)Ljava/util/stream/Stream;
      named streamFileNames Lnet/minecraft/client/gui/screen/pack/PackScreen;streamFileNames(Ljava/util/Collection;)Ljava/util/stream/Stream;
    • loadPackIcon

      private Identifier loadPackIcon(TextureManager textureManager, ResourcePackProfile resourcePackProfile)
      Mappings:
      Namespace Name Mixin selector
      official a Lfbp;a(Lfzf;Lanb;)Laew;
      intermediary method_30289 Lnet/minecraft/class_5375;method_30289(Lnet/minecraft/class_1060;Lnet/minecraft/class_3288;)Lnet/minecraft/class_2960;
      named loadPackIcon Lnet/minecraft/client/gui/screen/pack/PackScreen;loadPackIcon(Lnet/minecraft/client/texture/TextureManager;Lnet/minecraft/resource/ResourcePackProfile;)Lnet/minecraft/util/Identifier;
    • getPackIconTexture

      private Identifier getPackIconTexture(ResourcePackProfile resourcePackProfile)
      Mappings:
      Namespace Name Mixin selector
      official a Lfbp;a(Lanb;)Laew;
      intermediary method_30287 Lnet/minecraft/class_5375;method_30287(Lnet/minecraft/class_3288;)Lnet/minecraft/class_2960;
      named getPackIconTexture Lnet/minecraft/client/gui/screen/pack/PackScreen;getPackIconTexture(Lnet/minecraft/resource/ResourcePackProfile;)Lnet/minecraft/util/Identifier;