Class PackSelectionScreen
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.packs.PackSelectionScreen
- All Implemented Interfaces:
ContainerEventHandler,GuiEventListener,Renderable,TabOrderedElement
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.client.gui.screens.Screen
Screen.NarratableSearchResult -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Componentprivate TransferableSelectionListprivate static final ResourceLocationprivate static final Componentprivate Buttonprivate static final Componentprivate static final intprivate final HeaderAndFooterLayoutprivate static final int(package private) static final org.slf4j.Loggerprivate final PackSelectionModelprivate static final Componentprivate final Pathprivate final Map<String, ResourceLocation> private static final intprivate EditBoxprivate static final Componentprivate static final intprivate static final Componentprivate TransferableSelectionListprivate longprivate PackSelectionScreen.WatcherFields inherited from class net.minecraft.client.gui.screens.Screen
FADE_IN_TIME, font, FOOTER_SEPARATOR, HEADER_SEPARATOR, height, INWORLD_FOOTER_SEPARATOR, INWORLD_HEADER_SEPARATOR, MENU_BACKGROUND, minecraft, narratorButton, renderables, screenExecutor, title, width -
Constructor Summary
ConstructorsConstructorDescriptionPackSelectionScreen(PackRepository pRepository, Consumer<PackRepository> pOutput, Path pPackDir, Component pTitle) -
Method Summary
Modifier and TypeMethodDescriptionvoidprivate voidprotected static voidextractPackNames(Collection<Path> pPaths) private voidfilterEntries(String pQuery, Stream<PackSelectionModel.Entry> pEntries, TransferableSelectionList pList) private ResourceLocationgetPackIcon(Pack pPack) protected voidinit()private ResourceLocationloadPackIcon(TextureManager pTextureManager, Pack pPack) voidonClose()voidonFilesDrop(List<Path> pPacks) private voidprivate voidreload()protected voidvoidtick()private voidupdateFilteredEntries(String pQuery) Methods inherited from class net.minecraft.client.gui.screens.Screen
added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, canInterruptWithAnotherScreen, changeFocus, children, clearFocus, clearWidgets, clickCommandAction, clickUrlAction, defaultHandleClickEvent, defaultHandleGameClickEvent, fadeWidgets, fillCrashDetails, findNarratableWidget, getBackgroundMusic, getFont, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleClickEvent, handleComponentClicked, handleDelayedNarration, init, insertText, isAllowedInPortal, isInGameUi, isMouseOver, isPauseScreen, isValidCharacterForName, keyPressed, panoramaShouldSpin, rebuildWidgets, removed, removeWidget, render, renderBackground, renderBlurredBackground, renderMenuBackground, renderMenuBackground, renderMenuBackgroundTexture, renderPanorama, renderTransparentBackground, renderWithTooltipAndSubtitles, resize, setInitialFocus, setInitialFocus, shouldCloseOnEsc, shouldNarrateNavigation, showsActiveEffects, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, updateNarratorStatusMethods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
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.components.events.ContainerEventHandler
charTyped, getChildAt, getCurrentFocusPath, isFocused, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, nextFocusPath, setFocusedMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
getBorderForArrowNavigation, mouseMoved, shouldTakeFocusAfterInteractionMethods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Field Details
-
LOGGER
static final org.slf4j.Logger LOGGER -
AVAILABLE_TITLE
-
SELECTED_TITLE
-
OPEN_PACK_FOLDER_TITLE
-
SEARCH
-
LIST_WIDTH
private static final int LIST_WIDTH- See Also:
-
HEADER_ELEMENT_SPACING
private static final int HEADER_ELEMENT_SPACING- See Also:
-
SEARCH_BOX_HEIGHT
private static final int SEARCH_BOX_HEIGHT- See Also:
-
DRAG_AND_DROP
-
DIRECTORY_BUTTON_TOOLTIP
-
RELOAD_COOLDOWN
private static final int RELOAD_COOLDOWN- See Also:
-
DEFAULT_ICON
-
layout
-
model
-
watcher
-
ticksToReload
private long ticksToReload -
availablePackList
-
selectedPackList
-
search
-
packDir
-
doneButton
-
packIcons
-
-
Constructor Details
-
PackSelectionScreen
public PackSelectionScreen(PackRepository pRepository, Consumer<PackRepository> pOutput, Path pPackDir, Component pTitle)
-
-
Method Details
-
onClose
public void onClose() -
closeWatcher
private void closeWatcher() -
init
protected void init() -
updateFilteredEntries
-
filterEntries
private void filterEntries(String pQuery, Stream<PackSelectionModel.Entry> pEntries, @Nullable TransferableSelectionList pList) -
repositionElements
protected void repositionElements()- Overrides:
repositionElementsin classScreen
-
tick
public void tick() -
populateLists
-
clearSelected
public void clearSelected() -
reload
private void reload() -
copyPacks
-
onFilesDrop
- Overrides:
onFilesDropin classScreen
-
extractPackNames
-
loadPackIcon
-
getPackIcon
-