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
- Mappings:
Namespace Name official eoj
intermediary net/minecraft/class_5375
named net/minecraft/client/gui/screen/pack/PackScreen
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.screen.Screen
Screen.SelectedElementNarrationData
-
Field Summary
Modifier and TypeFieldDescriptionprivate PackListWidget
private @Nullable PackScreen.DirectoryWatcher
private ButtonWidget
private static final Text
private static final int
private static final int
private final File
(package private) static final Text
private final Map<String,
Identifier> (package private) static final org.slf4j.Logger
private final ResourcePackOrganizer
private final Screen
private long
private PackListWidget
private static final Identifier
Fields inherited from class net.minecraft.client.gui.screen.Screen
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
Fields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL
-
Constructor Summary
ConstructorDescriptionPackScreen
(Screen parent, ResourcePackManager packManager, Consumer<ResourcePackManager> applier, File file, Text title) -
Method Summary
Modifier and TypeMethodDescriptionvoid
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.private Identifier
loadPackIcon
(TextureManager textureManager, ResourcePackProfile resourcePackProfile) 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
Methods inherited from class net.minecraft.client.gui.screen.Screen
addDrawable, addDrawableChild, addElementNarrations, addScreenNarrations, addSelectableChild, applyKeyPressNarratorDelay, applyMouseMoveNarratorDelay, applyMousePressScrollNarratorDelay, applyNarratorModeChangeDelay, children, clearAndInit, clearChildren, findSelectedElementData, getNarratedTitle, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, hide, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, keyPressed, narrateScreenIfNarrationEnabled, remove, removed, renderBackground, renderBackground, renderBackgroundTexture, renderOrderedTooltip, renderTextHoverEffect, renderTooltip, renderTooltip, renderTooltip, renderTooltip, resize, shouldCloseOnEsc, shouldPause, updateNarrator, wrapScreenError
Methods inherited from class net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocused
Methods inherited from class net.minecraft.client.gui.DrawableHelper
disableScissor, drawCenteredText, drawCenteredText, drawCenteredTextWithShadow, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, drawWithOutline, drawWithShadow, enableScissor, fill, fillGradient, fillGradient, fillGradient, getZOffset, 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
static final org.slf4j.Logger LOGGER- Mappings:
Namespace Name Mixin selector official a
Leoj;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
Leoj;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
- Mappings:
Namespace Name Mixin selector official c
Leoj;c:Lrq;
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 n
Leoj;n:Lrq;
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 o
Leoj;o: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
- Mappings:
Namespace Name Mixin selector official p
Leoj;p:Labb;
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
Leoj;q:Leoi;
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
Leoj;r:Lelm;
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
Leoj;s:Leoj$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 t
Leoj;t:J
intermediary field_25788
Lnet/minecraft/class_5375;field_25788:J
named refreshTimeout
Lnet/minecraft/client/gui/screen/pack/PackScreen;refreshTimeout:J
-
availablePackList
- Mappings:
Namespace Name Mixin selector official u
Leoj;u:Leok;
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
Leoj;v:Leok;
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
Leoj;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
Leoj;x:Lehp;
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
- Mappings:
Namespace Name Mixin selector official y
Leoj;y: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(Screen parent, ResourcePackManager packManager, Consumer<ResourcePackManager> applier, File file, Text title) - Mappings:
Namespace Name Mixin selector official <init>
Leoj;<init>(Lelm;Lahy;Ljava/util/function/Consumer;Ljava/io/File;Lrq;)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
-
close
public void close() -
closeDirectoryWatcher
private void closeDirectoryWatcher()- Mappings:
Namespace Name Mixin selector official g
Leoj;g()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() -
updatePackLists
private void updatePackLists()- Mappings:
Namespace Name Mixin selector official j
Leoj;j()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
Leoj;a(Leok;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 k
Leoj;k()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
Leio;a(Leaq;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
Leoj;a(Lefu;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
Lelm;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
-
loadPackIcon
private Identifier loadPackIcon(TextureManager textureManager, ResourcePackProfile resourcePackProfile) - Mappings:
Namespace Name Mixin selector official a
Leoj;a(Lfkf;Lahw;)Labb;
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
- Mappings:
Namespace Name Mixin selector official a
Leoj;a(Lahw;)Labb;
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;
-