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 official fryintermediary net/minecraft/class_5375named net/minecraft/client/gui/screen/pack/PackScreen
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.client.gui.screen.Screen
Screen.SelectedElementNarrationData -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Textprivate PackListWidgetprivate @Nullable PackScreen.DirectoryWatcherprivate ButtonWidgetprivate static final Textprivate static final intprivate static final intprivate final Pathprivate static final Textprivate final Map<String, Identifier> private final ThreePartsLayoutWidget(package private) static final Loggerprivate static final Textprivate final ResourcePackOrganizerprivate longprivate static final Textprivate PackListWidgetprivate static final IdentifierFields 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, PANORAMA_RENDERER, ROTATING_PANORAMA_RENDERER, textRenderer, title, widthFields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL -
Constructor Summary
ConstructorsConstructorDescriptionPackScreen(ResourcePackManager resourcePackManager, Consumer<ResourcePackManager> applier, Path file, Text title) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidclose()private voidprotected static voidcopyPacks(MinecraftClient client, List<Path> srcPaths, Path destPath) voidfilesDragged(List<Path> paths) private IdentifiergetPackIconTexture(ResourcePackProfile resourcePackProfile) protected voidinit()Called when a screen should be initialized.protected voidprivate IdentifierloadPackIcon(TextureManager textureManager, ResourcePackProfile resourcePackProfile) private voidrefresh()streamFileNames(Collection<Path> paths) voidswitchFocusedList(PackListWidget listWidget) voidtick()private voidupdatePackList(PackListWidget widget, Stream<ResourcePackOrganizer.Pack> packs) private voidMethods inherited from class net.minecraft.client.gui.screen.Screen
addDrawable, addDrawableChild, addElementNarrations, addScreenNarrations, addSelectableChild, applyBlur, applyKeyPressNarratorDelay, applyMouseMoveNarratorDelay, applyMousePressScrollNarratorDelay, applyNarratorModeChangeDelay, blur, children, clearAndInit, clearChildren, findSelectedElementData, getMusic, getNarratedTitle, getNavigationFocus, getTitle, getTooltipFromItem, getUsageNarrationText, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, hasUsageText, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, keyPressed, narrateScreenIfNarrationEnabled, onDisplayed, remove, removed, render, renderBackground, renderBackgroundTexture, renderDarkening, renderDarkening, renderInGameBackground, renderPanoramaBackground, renderWithTooltip, resize, setInitialFocus, setInitialFocus, setTooltip, setTooltip, setTooltip, setTooltip, shouldCloseOnEsc, shouldPause, switchFocus, updateNarrator, wrapScreenErrorMethods inherited from class net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocusedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.Element
mouseMovedMethods inherited from interface net.minecraft.client.gui.navigation.Navigable
getNavigationOrderMethods 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 official aLfry;a:Lorg/slf4j/Logger;intermediary field_25464Lnet/minecraft/class_5375;field_25464:Lorg/slf4j/Logger;named LOGGERLnet/minecraft/client/gui/screen/pack/PackScreen;LOGGER:Lorg/slf4j/Logger;
-
AVAILABLE_TITLE
- Mappings:
Namespace Name Mixin selector official bLfry;b:Lxe;intermediary field_49541Lnet/minecraft/class_5375;field_49541:Lnet/minecraft/class_2561;named AVAILABLE_TITLELnet/minecraft/client/gui/screen/pack/PackScreen;AVAILABLE_TITLE:Lnet/minecraft/text/Text;
-
SELECTED_TITLE
- Mappings:
Namespace Name Mixin selector official cLfry;c:Lxe;intermediary field_49542Lnet/minecraft/class_5375;field_49542:Lnet/minecraft/class_2561;named SELECTED_TITLELnet/minecraft/client/gui/screen/pack/PackScreen;SELECTED_TITLE:Lnet/minecraft/text/Text;
-
OPEN_FOLDER
- Mappings:
Namespace Name Mixin selector official dLfry;d:Lxe;intermediary field_49543Lnet/minecraft/class_5375;field_49543:Lnet/minecraft/class_2561;named OPEN_FOLDERLnet/minecraft/client/gui/screen/pack/PackScreen;OPEN_FOLDER:Lnet/minecraft/text/Text;
-
field_32395
private static final int field_32395- See Also:
- Mappings:
Namespace Name Mixin selector official rLfry;r:Iintermediary field_32395Lnet/minecraft/class_5375;field_32395:Inamed field_32395Lnet/minecraft/client/gui/screen/pack/PackScreen;field_32395:I
-
DROP_INFO
- Mappings:
Namespace Name Mixin selector official sLfry;s:Lxe;intermediary field_25465Lnet/minecraft/class_5375;field_25465:Lnet/minecraft/class_2561;named DROP_INFOLnet/minecraft/client/gui/screen/pack/PackScreen;DROP_INFO:Lnet/minecraft/text/Text;
-
FOLDER_INFO
- Mappings:
Namespace Name Mixin selector official uLfry;u:Lxe;intermediary field_25466Lnet/minecraft/class_5375;field_25466:Lnet/minecraft/class_2561;named FOLDER_INFOLnet/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 vLfry;v:Iintermediary field_32396Lnet/minecraft/class_5375;field_32396:Inamed field_32396Lnet/minecraft/client/gui/screen/pack/PackScreen;field_32396:I
-
UNKNOWN_PACK
- Mappings:
Namespace Name Mixin selector official wLfry;w:Lakt;intermediary field_25786Lnet/minecraft/class_5375;field_25786:Lnet/minecraft/class_2960;named UNKNOWN_PACKLnet/minecraft/client/gui/screen/pack/PackScreen;UNKNOWN_PACK:Lnet/minecraft/util/Identifier;
-
layout
- Mappings:
Namespace Name Mixin selector official xLfry;x:Lfma;intermediary field_49544Lnet/minecraft/class_5375;field_49544:Lnet/minecraft/class_8132;named layoutLnet/minecraft/client/gui/screen/pack/PackScreen;layout:Lnet/minecraft/client/gui/widget/ThreePartsLayoutWidget;
-
organizer
- Mappings:
Namespace Name Mixin selector official yLfry;y:Lfrx;intermediary field_25468Lnet/minecraft/class_5375;field_25468:Lnet/minecraft/class_5369;named organizerLnet/minecraft/client/gui/screen/pack/PackScreen;organizer:Lnet/minecraft/client/gui/screen/pack/ResourcePackOrganizer;
-
directoryWatcher
- Mappings:
Namespace Name Mixin selector official zLfry;z:Lfry$a;intermediary field_25787Lnet/minecraft/class_5375;field_25787:Lnet/minecraft/class_5375$class_5426;named directoryWatcherLnet/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 ALfry;A:Jintermediary field_25788Lnet/minecraft/class_5375;field_25788:Jnamed refreshTimeoutLnet/minecraft/client/gui/screen/pack/PackScreen;refreshTimeout:J
-
availablePackList
- Mappings:
Namespace Name Mixin selector official BLfry;B:Lfrz;intermediary field_25472Lnet/minecraft/class_5375;field_25472:Lnet/minecraft/class_521;named availablePackListLnet/minecraft/client/gui/screen/pack/PackScreen;availablePackList:Lnet/minecraft/client/gui/screen/pack/PackListWidget;
-
selectedPackList
- Mappings:
Namespace Name Mixin selector official CLfry;C:Lfrz;intermediary field_25473Lnet/minecraft/class_5375;field_25473:Lnet/minecraft/class_521;named selectedPackListLnet/minecraft/client/gui/screen/pack/PackScreen;selectedPackList:Lnet/minecraft/client/gui/screen/pack/PackListWidget;
-
file
- Mappings:
Namespace Name Mixin selector official DLfry;D:Ljava/nio/file/Path;intermediary field_25474Lnet/minecraft/class_5375;field_25474:Ljava/nio/file/Path;named fileLnet/minecraft/client/gui/screen/pack/PackScreen;file:Ljava/nio/file/Path;
-
doneButton
- Mappings:
Namespace Name Mixin selector official ELfry;E:Lfin;intermediary field_25475Lnet/minecraft/class_5375;field_25475:Lnet/minecraft/class_4185;named doneButtonLnet/minecraft/client/gui/screen/pack/PackScreen;doneButton:Lnet/minecraft/client/gui/widget/ButtonWidget;
-
iconTextures
- Mappings:
Namespace Name Mixin selector official FLfry;F:Ljava/util/Map;intermediary field_25789Lnet/minecraft/class_5375;field_25789:Ljava/util/Map;named iconTexturesLnet/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>Lfry;<init>(Lato;Ljava/util/function/Consumer;Ljava/nio/file/Path;Lxe;)Vintermediary <init>Lnet/minecraft/class_5375;<init>(Lnet/minecraft/class_3283;Ljava/util/function/Consumer;Ljava/nio/file/Path;Lnet/minecraft/class_2561;)Vnamed <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() -
closeDirectoryWatcher
private void closeDirectoryWatcher()- Mappings:
Namespace Name Mixin selector official CLfry;C()Vintermediary method_30291Lnet/minecraft/class_5375;method_30291()Vnamed closeDirectoryWatcherLnet/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()to set the element that is initially focused. -
tick
public void tick() -
updatePackLists
private void updatePackLists()- Mappings:
Namespace Name Mixin selector official DLfry;D()Vintermediary method_29678Lnet/minecraft/class_5375;method_29678()Vnamed updatePackListsLnet/minecraft/client/gui/screen/pack/PackScreen;updatePackLists()V
-
updatePackList
- Mappings:
Namespace Name Mixin selector official aLfry;a(Lfrz;Ljava/util/stream/Stream;)Vintermediary method_29673Lnet/minecraft/class_5375;method_29673(Lnet/minecraft/class_521;Ljava/util/stream/Stream;)Vnamed updatePackListLnet/minecraft/client/gui/screen/pack/PackScreen;updatePackList(Lnet/minecraft/client/gui/screen/pack/PackListWidget;Ljava/util/stream/Stream;)V
-
switchFocusedList
- Mappings:
Namespace Name Mixin selector official aLfry;a(Lfrz;)Vintermediary method_48277Lnet/minecraft/class_5375;method_48277(Lnet/minecraft/class_521;)Vnamed switchFocusedListLnet/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 BLfry;B()Vintermediary method_48278Lnet/minecraft/class_5375;method_48278()Vnamed clearSelectionLnet/minecraft/client/gui/screen/pack/PackScreen;clearSelection()V
-
refresh
private void refresh()- Mappings:
Namespace Name Mixin selector official ELfry;E()Vintermediary method_29680Lnet/minecraft/class_5375;method_29680()Vnamed refreshLnet/minecraft/client/gui/screen/pack/PackScreen;refresh()V
-
copyPacks
- Mappings:
Namespace Name Mixin selector official aLfry;a(Lfgj;Ljava/util/List;Ljava/nio/file/Path;)Vintermediary method_29669Lnet/minecraft/class_5375;method_29669(Lnet/minecraft/class_310;Ljava/util/List;Ljava/nio/file/Path;)Vnamed copyPacksLnet/minecraft/client/gui/screen/pack/PackScreen;copyPacks(Lnet/minecraft/client/MinecraftClient;Ljava/util/List;Ljava/nio/file/Path;)V
-
filesDragged
- Overrides:
filesDraggedin classScreen- Mappings:
Namespace Name Mixin selector official aLfon;a(Ljava/util/List;)Vintermediary method_29638Lnet/minecraft/class_437;method_29638(Ljava/util/List;)Vnamed filesDraggedLnet/minecraft/client/gui/screen/Screen;filesDragged(Ljava/util/List;)V
-
streamFileNames
- Mappings:
Namespace Name Mixin selector official aLfry;a(Ljava/util/Collection;)Ljava/util/stream/Stream;intermediary method_52760Lnet/minecraft/class_5375;method_52760(Ljava/util/Collection;)Ljava/util/stream/Stream;named streamFileNamesLnet/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 aLfry;a(Lgqz;Latl;)Lakt;intermediary method_30289Lnet/minecraft/class_5375;method_30289(Lnet/minecraft/class_1060;Lnet/minecraft/class_3288;)Lnet/minecraft/class_2960;named loadPackIconLnet/minecraft/client/gui/screen/pack/PackScreen;loadPackIcon(Lnet/minecraft/client/texture/TextureManager;Lnet/minecraft/resource/ResourcePackProfile;)Lnet/minecraft/util/Identifier;
-
getPackIconTexture
- Mappings:
Namespace Name Mixin selector official aLfry;a(Latl;)Lakt;intermediary method_30287Lnet/minecraft/class_5375;method_30287(Lnet/minecraft/class_3288;)Lnet/minecraft/class_2960;named getPackIconTextureLnet/minecraft/client/gui/screen/pack/PackScreen;getPackIconTexture(Lnet/minecraft/resource/ResourcePackProfile;)Lnet/minecraft/util/Identifier;
-