Class PackScreen
java.lang.Object
net.minecraft.client.gui.DrawableHelper
net.minecraft.client.gui.AbstractParentElement
net.minecraft.client.gui.screen.Screen
net.minecraft.client.gui.screen.pack.PackScreen
- All Implemented Interfaces:
Drawable
,Element
,ParentElement
,TickableElement
@Environment(CLIENT) public class PackScreen extends Screen
- Mappings:
Namespace Name official dxw
intermediary net/minecraft/class_5375
named net/minecraft/client/gui/screen/pack/PackScreen
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
PackScreen.DirectoryWatcher
-
Field Summary
Fields Modifier and Type Field Description private PackListWidget
availablePackList
private PackScreen.DirectoryWatcher
directoryWatcher
private ButtonWidget
doneButton
private static Text
DROP_INFO
private long
field_25788
private Map<String,Identifier>
field_25789
private File
file
private static Text
FOLDER_INFO
private static Logger
LOGGER
private ResourcePackOrganizer
organizer
private Screen
parent
private PackListWidget
selectedPackList
private static Identifier
UNKNOWN_PACK
Fields inherited from class net.minecraft.client.gui.screen.Screen
buttons, children, client, height, itemRenderer, passEvents, textRenderer, title, width
Fields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
-
Constructor Summary
Constructors Constructor Description PackScreen(Screen parent, ResourcePackManager packManager, Consumer<ResourcePackManager> consumer, File file, Text title)
-
Method Summary
Modifier and Type Method Description private void
closeDirectoryWatcher()
protected static void
copyPacks(MinecraftClient client, List<Path> srcPaths, Path destPath)
void
filesDragged(List<Path> paths)
protected void
init()
Called when a screen should be initialized.private Identifier
method_30287(ResourcePackProfile resourcePackProfile)
private Identifier
method_30289(TextureManager textureManager, ResourcePackProfile resourcePackProfile)
void
onClose()
private void
refresh()
void
render(MatrixStack matrices, int mouseX, int mouseY, float delta)
void
tick()
private void
updatePackList(PackListWidget widget, Stream<ResourcePackOrganizer.Pack> packs)
private void
updatePackLists()
Methods inherited from class net.minecraft.client.gui.screen.Screen
addButton, addChild, children, getNarrationMessage, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, keyPressed, removed, renderBackground, renderBackground, renderBackgroundTexture, renderOrderedTooltip, renderTextHoverEffect, renderTooltip, renderTooltip, renderTooltip, renderTooltip, resize, sendMessage, sendMessage, shouldCloseOnEsc, wrapScreenError
Methods inherited from class net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocused
Methods inherited from class net.minecraft.client.gui.DrawableHelper
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, method_33284, setZOffset
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.gui.Element
mouseMoved
Methods inherited from interface net.minecraft.client.gui.ParentElement
changeFocus, charTyped, focusOn, hoveredElement, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setInitialFocus
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official a
Ldxw;a:Lorg/apache/logging/log4j/Logger;
intermediary field_25464
Lnet/minecraft/class_5375;field_25464:Lorg/apache/logging/log4j/Logger;
named LOGGER
Lnet/minecraft/client/gui/screen/pack/PackScreen;LOGGER:Lorg/apache/logging/log4j/Logger;
-
DROP_INFO
- Mappings:
Namespace Name Mixin selector official b
Ldxw;b:Loi;
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
- Mappings:
Namespace Name Mixin selector official c
Ldxw;c:Loi;
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;
-
UNKNOWN_PACK
- Mappings:
Namespace Name Mixin selector official p
Ldxw;p:Lwb;
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
- Mappings:
Namespace Name Mixin selector official q
Ldxw;q:Ldxv;
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;
-
parent
- Mappings:
Namespace Name Mixin selector official r
Ldxw;r:Ldve;
intermediary field_25469
Lnet/minecraft/class_5375;field_25469:Lnet/minecraft/class_437;
named parent
Lnet/minecraft/client/gui/screen/pack/PackScreen;parent:Lnet/minecraft/client/gui/screen/Screen;
-
directoryWatcher
- Mappings:
Namespace Name Mixin selector official s
Ldxw;s:Ldxw$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;
-
field_25788
private long field_25788- Mappings:
Namespace Name Mixin selector official t
Ldxw;t:J
intermediary field_25788
Lnet/minecraft/class_5375;field_25788:J
named field_25788
Lnet/minecraft/client/gui/screen/pack/PackScreen;field_25788:J
-
availablePackList
- Mappings:
Namespace Name Mixin selector official u
Ldxw;u:Ldxx;
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
- Mappings:
Namespace Name Mixin selector official v
Ldxw;v:Ldxx;
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
- Mappings:
Namespace Name Mixin selector official w
Ldxw;w:Ljava/io/File;
intermediary field_25474
Lnet/minecraft/class_5375;field_25474:Ljava/io/File;
named file
Lnet/minecraft/client/gui/screen/pack/PackScreen;file:Ljava/io/File;
-
doneButton
- Mappings:
Namespace Name Mixin selector official x
Ldxw;x:Ldru;
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;
-
field_25789
- Mappings:
Namespace Name Mixin selector official y
Ldxw;y:Ljava/util/Map;
intermediary field_25789
Lnet/minecraft/class_5375;field_25789:Ljava/util/Map;
named field_25789
Lnet/minecraft/client/gui/screen/pack/PackScreen;field_25789:Ljava/util/Map;
-
-
Constructor Details
-
PackScreen
public PackScreen(Screen parent, ResourcePackManager packManager, Consumer<ResourcePackManager> consumer, File file, Text title)- Mappings:
Namespace Name Mixin selector official <init>
Ldxw;<init>(Ldve;Lacm;Ljava/util/function/Consumer;Ljava/io/File;Loi;)V
intermediary <init>
Lnet/minecraft/class_5375;<init>(Lnet/minecraft/class_437;Lnet/minecraft/class_3283;Ljava/util/function/Consumer;Ljava/io/File;Lnet/minecraft/class_2561;)V
named <init>
Lnet/minecraft/client/gui/screen/pack/PackScreen;<init>(Lnet/minecraft/client/gui/screen/Screen;Lnet/minecraft/resource/ResourcePackManager;Ljava/util/function/Consumer;Ljava/io/File;Lnet/minecraft/text/Text;)V
-
-
Method Details
-
onClose
public void onClose() -
closeDirectoryWatcher
private void closeDirectoryWatcher()- Mappings:
Namespace Name Mixin selector official i
Ldxw;i()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.
-
tick
public void tick()- Specified by:
tick
in interfaceTickableElement
- Overrides:
tick
in classScreen
- Mappings:
Namespace Name Mixin selector official d
Ldsn;d()V
intermediary method_25393
Lnet/minecraft/class_4893;method_25393()V
named tick
Lnet/minecraft/client/gui/screen/TickableElement;tick()V
-
updatePackLists
private void updatePackLists()- Mappings:
Namespace Name Mixin selector official k
Ldxw;k()V
intermediary method_29678
Lnet/minecraft/class_5375;method_29678()V
named updatePackLists
Lnet/minecraft/client/gui/screen/pack/PackScreen;updatePackLists()V
-
updatePackList
- Mappings:
Namespace Name Mixin selector official a
Ldxw;a(Ldxx;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
-
refresh
private void refresh()- Mappings:
Namespace Name Mixin selector official l
Ldxw;l()V
intermediary method_29680
Lnet/minecraft/class_5375;method_29680()V
named refresh
Lnet/minecraft/client/gui/screen/pack/PackScreen;refresh()V
-
render
- Specified by:
render
in interfaceDrawable
- Overrides:
render
in classScreen
- Mappings:
Namespace Name Mixin selector official a
Ldsq;a(Ldlr;IIF)V
intermediary method_25394
Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_4587;IIF)V
named render
Lnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/util/math/MatrixStack;IIF)V
-
copyPacks
- Mappings:
Namespace Name Mixin selector official a
Ldxw;a(Ldqk;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
- Overrides:
filesDragged
in classScreen
- Mappings:
Namespace Name Mixin selector official a
Ldve;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
-
method_30289
private Identifier method_30289(TextureManager textureManager, ResourcePackProfile resourcePackProfile)- Mappings:
Namespace Name Mixin selector official a
Ldxw;a(Lerv;Lack;)Lwb;
intermediary method_30289
Lnet/minecraft/class_5375;method_30289(Lnet/minecraft/class_1060;Lnet/minecraft/class_3288;)Lnet/minecraft/class_2960;
named method_30289
Lnet/minecraft/client/gui/screen/pack/PackScreen;method_30289(Lnet/minecraft/client/texture/TextureManager;Lnet/minecraft/resource/ResourcePackProfile;)Lnet/minecraft/util/Identifier;
-
method_30287
- Mappings:
Namespace Name Mixin selector official a
Ldxw;a(Lack;)Lwb;
intermediary method_30287
Lnet/minecraft/class_5375;method_30287(Lnet/minecraft/class_3288;)Lnet/minecraft/class_2960;
named method_30287
Lnet/minecraft/client/gui/screen/pack/PackScreen;method_30287(Lnet/minecraft/resource/ResourcePackProfile;)Lnet/minecraft/util/Identifier;
-