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
-
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()
void
filesDragged(List<Path> paths)
protected void
init()
Called when a screen should be initialized.protected static void
method_29669(MinecraftClient minecraftClient, List<Path> list, Path path)
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, 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, 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
-
DROP_INFO
-
FOLDER_INFO
-
UNKNOWN_PACK
-
organizer
-
parent
-
directoryWatcher
-
field_25788
private long field_25788 -
availablePackList
-
selectedPackList
-
file
-
doneButton
-
field_25789
-
-
Constructor Details
-
PackScreen
public PackScreen(Screen parent, ResourcePackManager packManager, Consumer<ResourcePackManager> consumer, File file, Text title)
-
-
Method Details
-
onClose
public void onClose() -
closeDirectoryWatcher
private void closeDirectoryWatcher() -
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
-
updatePackLists
private void updatePackLists() -
updatePackList
-
refresh
private void refresh() -
render
-
method_29669
-
filesDragged
- Overrides:
filesDragged
in classScreen
-
method_30289
private Identifier method_30289(TextureManager textureManager, ResourcePackProfile resourcePackProfile) -
method_30287
-