Class PackScreen
java.lang.Object
net.minecraft.client.gui.AbstractParentElement
net.minecraft.client.gui.screen.Screen
net.minecraft.client.gui.screen.pack.PackScreen
- All Implemented Interfaces:
Drawable
,Element
,Navigable
,ParentElement
- Mappings:
Namespace Name named net/minecraft/client/gui/screen/pack/PackScreen
intermediary net/minecraft/class_5375
official frt
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.screen.Screen
Screen.SelectedElementNarrationData
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final Text
private PackListWidget
private @Nullable PackScreen.DirectoryWatcher
private ButtonWidget
private static final Text
private static final int
private static final int
private final Path
private static final Text
private final Map
<String, Identifier> private final ThreePartsLayoutWidget
(package private) static final Logger
private static final Text
private final ResourcePackOrganizer
private long
private static final Text
private PackListWidget
private static final Identifier
Fields inherited from class net.minecraft.client.gui.screen.Screen
client, executor, FOOTER_SEPARATOR_TEXTURE, HEADER_SEPARATOR_TEXTURE, height, INWORLD_FOOTER_SEPARATOR_TEXTURE, INWORLD_HEADER_SEPARATOR_TEXTURE, MENU_BACKGROUND_TEXTURE, narratorToggleButton, PANORAMA_RENDERER, ROTATING_PANORAMA_RENDERER, textRenderer, title, width
Fields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL
-
Constructor Summary
ConstructorDescriptionPackScreen
(ResourcePackManager resourcePackManager, Consumer<ResourcePackManager> applier, Path file, Text title) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
close()
private void
protected static void
copyPacks
(MinecraftClient client, List<Path> srcPaths, Path destPath) void
filesDragged
(List<Path> paths) private Identifier
getPackIconTexture
(ResourcePackProfile resourcePackProfile) protected void
init()
Called when a screen should be initialized.protected void
private Identifier
loadPackIcon
(TextureManager textureManager, ResourcePackProfile resourcePackProfile) private void
refresh()
streamFileNames
(Collection<Path> paths) void
switchFocusedList
(PackListWidget listWidget) void
tick()
private void
updatePackList
(PackListWidget widget, Stream<ResourcePackOrganizer.Pack> packs) private void
Methods inherited from class net.minecraft.client.gui.screen.Screen
addDrawable, addDrawableChild, addElementNarrations, addScreenNarrations, addSelectableChild, applyBlur, applyKeyPressNarratorDelay, applyMouseMoveNarratorDelay, applyMousePressScrollNarratorDelay, blur, children, clearAndInit, clearChildren, clearTooltip, findSelectedElementData, getMusic, getNarratedTitle, getNavigationFocus, getTitle, getTooltipFromItem, getUsageNarrationText, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, hasUsageText, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, keyPressed, narrateScreenIfNarrationEnabled, onDisplayed, refreshNarrator, remove, removed, render, renderBackground, renderBackgroundTexture, renderDarkening, renderDarkening, renderInGameBackground, renderPanoramaBackground, renderWithTooltip, resize, setInitialFocus, setInitialFocus, setTooltip, setTooltip, setTooltip, setTooltip, shouldCloseOnEsc, shouldPause, switchFocus, updateNarrator, wrapScreenError
Methods inherited from class net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocused
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.navigation.Navigable
getNavigationOrder
Methods inherited from interface net.minecraft.client.gui.ParentElement
charTyped, getFocusedPath, getNavigationPath, hoveredElement, isFocused, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setFocused
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGER
Lnet/minecraft/client/gui/screen/pack/PackScreen;LOGGER:Lorg/slf4j/Logger;
intermediary field_25464
Lnet/minecraft/class_5375;field_25464:Lorg/slf4j/Logger;
official a
Lfrt;a:Lorg/slf4j/Logger;
-
AVAILABLE_TITLE
- Mappings:
Namespace Name Mixin selector named AVAILABLE_TITLE
Lnet/minecraft/client/gui/screen/pack/PackScreen;AVAILABLE_TITLE:Lnet/minecraft/text/Text;
intermediary field_49541
Lnet/minecraft/class_5375;field_49541:Lnet/minecraft/class_2561;
official b
Lfrt;b:Lwz;
-
SELECTED_TITLE
- Mappings:
Namespace Name Mixin selector named SELECTED_TITLE
Lnet/minecraft/client/gui/screen/pack/PackScreen;SELECTED_TITLE:Lnet/minecraft/text/Text;
intermediary field_49542
Lnet/minecraft/class_5375;field_49542:Lnet/minecraft/class_2561;
official c
Lfrt;c:Lwz;
-
OPEN_FOLDER
- Mappings:
Namespace Name Mixin selector named OPEN_FOLDER
Lnet/minecraft/client/gui/screen/pack/PackScreen;OPEN_FOLDER:Lnet/minecraft/text/Text;
intermediary field_49543
Lnet/minecraft/class_5375;field_49543:Lnet/minecraft/class_2561;
official r
Lfrt;r:Lwz;
-
field_32395
private static final int field_32395- See Also:
- Mappings:
Namespace Name Mixin selector named field_32395
Lnet/minecraft/client/gui/screen/pack/PackScreen;field_32395:I
intermediary field_32395
Lnet/minecraft/class_5375;field_32395:I
official s
Lfrt;s:I
-
DROP_INFO
- Mappings:
Namespace Name Mixin selector named DROP_INFO
Lnet/minecraft/client/gui/screen/pack/PackScreen;DROP_INFO:Lnet/minecraft/text/Text;
intermediary field_25465
Lnet/minecraft/class_5375;field_25465:Lnet/minecraft/class_2561;
official u
Lfrt;u:Lwz;
-
FOLDER_INFO
- Mappings:
Namespace Name Mixin selector named FOLDER_INFO
Lnet/minecraft/client/gui/screen/pack/PackScreen;FOLDER_INFO:Lnet/minecraft/text/Text;
intermediary field_25466
Lnet/minecraft/class_5375;field_25466:Lnet/minecraft/class_2561;
official v
Lfrt;v:Lwz;
-
field_32396
private static final int field_32396- See Also:
- Mappings:
Namespace Name Mixin selector named field_32396
Lnet/minecraft/client/gui/screen/pack/PackScreen;field_32396:I
intermediary field_32396
Lnet/minecraft/class_5375;field_32396:I
official w
Lfrt;w:I
-
UNKNOWN_PACK
- Mappings:
Namespace Name Mixin selector named UNKNOWN_PACK
Lnet/minecraft/client/gui/screen/pack/PackScreen;UNKNOWN_PACK:Lnet/minecraft/util/Identifier;
intermediary field_25786
Lnet/minecraft/class_5375;field_25786:Lnet/minecraft/class_2960;
official x
Lfrt;x:Lakr;
-
layout
- Mappings:
Namespace Name Mixin selector named layout
Lnet/minecraft/client/gui/screen/pack/PackScreen;layout:Lnet/minecraft/client/gui/widget/ThreePartsLayoutWidget;
intermediary field_49544
Lnet/minecraft/class_5375;field_49544:Lnet/minecraft/class_8132;
official y
Lfrt;y:Lflz;
-
organizer
- Mappings:
Namespace Name Mixin selector named organizer
Lnet/minecraft/client/gui/screen/pack/PackScreen;organizer:Lnet/minecraft/client/gui/screen/pack/ResourcePackOrganizer;
intermediary field_25468
Lnet/minecraft/class_5375;field_25468:Lnet/minecraft/class_5369;
official z
Lfrt;z:Lfrs;
-
directoryWatcher
- Mappings:
Namespace Name Mixin selector named directoryWatcher
Lnet/minecraft/client/gui/screen/pack/PackScreen;directoryWatcher:Lnet/minecraft/client/gui/screen/pack/PackScreen$DirectoryWatcher;
intermediary field_25787
Lnet/minecraft/class_5375;field_25787:Lnet/minecraft/class_5375$class_5426;
official A
Lfrt;A:Lfrt$a;
-
refreshTimeout
private long refreshTimeout- Mappings:
Namespace Name Mixin selector named refreshTimeout
Lnet/minecraft/client/gui/screen/pack/PackScreen;refreshTimeout:J
intermediary field_25788
Lnet/minecraft/class_5375;field_25788:J
official B
Lfrt;B:J
-
availablePackList
- Mappings:
Namespace Name Mixin selector named availablePackList
Lnet/minecraft/client/gui/screen/pack/PackScreen;availablePackList:Lnet/minecraft/client/gui/screen/pack/PackListWidget;
intermediary field_25472
Lnet/minecraft/class_5375;field_25472:Lnet/minecraft/class_521;
official C
Lfrt;C:Lfru;
-
selectedPackList
- Mappings:
Namespace Name Mixin selector named selectedPackList
Lnet/minecraft/client/gui/screen/pack/PackScreen;selectedPackList:Lnet/minecraft/client/gui/screen/pack/PackListWidget;
intermediary field_25473
Lnet/minecraft/class_5375;field_25473:Lnet/minecraft/class_521;
official D
Lfrt;D:Lfru;
-
file
- Mappings:
Namespace Name Mixin selector named file
Lnet/minecraft/client/gui/screen/pack/PackScreen;file:Ljava/nio/file/Path;
intermediary field_25474
Lnet/minecraft/class_5375;field_25474:Ljava/nio/file/Path;
official E
Lfrt;E:Ljava/nio/file/Path;
-
doneButton
- Mappings:
Namespace Name Mixin selector named doneButton
Lnet/minecraft/client/gui/screen/pack/PackScreen;doneButton:Lnet/minecraft/client/gui/widget/ButtonWidget;
intermediary field_25475
Lnet/minecraft/class_5375;field_25475:Lnet/minecraft/class_4185;
official F
Lfrt;F:Lfim;
-
iconTextures
- Mappings:
Namespace Name Mixin selector named iconTextures
Lnet/minecraft/client/gui/screen/pack/PackScreen;iconTextures:Ljava/util/Map;
intermediary field_25789
Lnet/minecraft/class_5375;field_25789:Ljava/util/Map;
official G
Lfrt;G:Ljava/util/Map;
-
-
Constructor Details
-
PackScreen
public PackScreen(ResourcePackManager resourcePackManager, Consumer<ResourcePackManager> applier, Path file, Text title) - Mappings:
Namespace Name Mixin selector 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
intermediary <init>
Lnet/minecraft/class_5375;<init>(Lnet/minecraft/class_3283;Ljava/util/function/Consumer;Ljava/nio/file/Path;Lnet/minecraft/class_2561;)V
official <init>
Lfrt;<init>(Latp;Ljava/util/function/Consumer;Ljava/nio/file/Path;Lwz;)V
-
-
Method Details
-
close
public void close() -
closeDirectoryWatcher
private void closeDirectoryWatcher()- Mappings:
Namespace Name Mixin selector named closeDirectoryWatcher
Lnet/minecraft/client/gui/screen/pack/PackScreen;closeDirectoryWatcher()V
intermediary method_30291
Lnet/minecraft/class_5375;method_30291()V
official C
Lfrt;C()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()
to set the element that is initially focused. -
tick
public void tick() -
updatePackLists
private void updatePackLists()- Mappings:
Namespace Name Mixin selector named updatePackLists
Lnet/minecraft/client/gui/screen/pack/PackScreen;updatePackLists()V
intermediary method_29678
Lnet/minecraft/class_5375;method_29678()V
official D
Lfrt;D()V
-
updatePackList
- Mappings:
Namespace Name Mixin selector named updatePackList
Lnet/minecraft/client/gui/screen/pack/PackScreen;updatePackList(Lnet/minecraft/client/gui/screen/pack/PackListWidget;Ljava/util/stream/Stream;)V
intermediary method_29673
Lnet/minecraft/class_5375;method_29673(Lnet/minecraft/class_521;Ljava/util/stream/Stream;)V
official a
Lfrt;a(Lfru;Ljava/util/stream/Stream;)V
-
switchFocusedList
- Mappings:
Namespace Name Mixin selector named switchFocusedList
Lnet/minecraft/client/gui/screen/pack/PackScreen;switchFocusedList(Lnet/minecraft/client/gui/screen/pack/PackListWidget;)V
intermediary method_48277
Lnet/minecraft/class_5375;method_48277(Lnet/minecraft/class_521;)V
official a
Lfrt;a(Lfru;)V
-
clearSelection
public void clearSelection()- Mappings:
Namespace Name Mixin selector named clearSelection
Lnet/minecraft/client/gui/screen/pack/PackScreen;clearSelection()V
intermediary method_48278
Lnet/minecraft/class_5375;method_48278()V
official m
Lfrt;m()V
-
refresh
private void refresh()- Mappings:
Namespace Name Mixin selector named refresh
Lnet/minecraft/client/gui/screen/pack/PackScreen;refresh()V
intermediary method_29680
Lnet/minecraft/class_5375;method_29680()V
official E
Lfrt;E()V
-
copyPacks
- Mappings:
Namespace Name Mixin selector named copyPacks
Lnet/minecraft/client/gui/screen/pack/PackScreen;copyPacks(Lnet/minecraft/client/MinecraftClient;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
official a
Lfrt;a(Lfgo;Ljava/util/List;Ljava/nio/file/Path;)V
-
filesDragged
- Overrides:
filesDragged
in classScreen
- Mappings:
Namespace Name Mixin selector named filesDragged
Lnet/minecraft/client/gui/screen/Screen;filesDragged(Ljava/util/List;)V
intermediary method_29638
Lnet/minecraft/class_437;method_29638(Ljava/util/List;)V
official a
Lfod;a(Ljava/util/List;)V
-
streamFileNames
- Mappings:
Namespace Name Mixin selector named streamFileNames
Lnet/minecraft/client/gui/screen/pack/PackScreen;streamFileNames(Ljava/util/Collection;)Ljava/util/stream/Stream;
intermediary method_52760
Lnet/minecraft/class_5375;method_52760(Ljava/util/Collection;)Ljava/util/stream/Stream;
official a
Lfrt;a(Ljava/util/Collection;)Ljava/util/stream/Stream;
-
loadPackIcon
private Identifier loadPackIcon(TextureManager textureManager, ResourcePackProfile resourcePackProfile) - Mappings:
Namespace Name Mixin selector named loadPackIcon
Lnet/minecraft/client/gui/screen/pack/PackScreen;loadPackIcon(Lnet/minecraft/client/texture/TextureManager;Lnet/minecraft/resource/ResourcePackProfile;)Lnet/minecraft/util/Identifier;
intermediary method_30289
Lnet/minecraft/class_5375;method_30289(Lnet/minecraft/class_1060;Lnet/minecraft/class_3288;)Lnet/minecraft/class_2960;
official a
Lfrt;a(Lgqm;Latm;)Lakr;
-
getPackIconTexture
- Mappings:
Namespace Name Mixin selector named getPackIconTexture
Lnet/minecraft/client/gui/screen/pack/PackScreen;getPackIconTexture(Lnet/minecraft/resource/ResourcePackProfile;)Lnet/minecraft/util/Identifier;
intermediary method_30287
Lnet/minecraft/class_5375;method_30287(Lnet/minecraft/class_3288;)Lnet/minecraft/class_2960;
official a
Lfrt;a(Latm;)Lakr;
-