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 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 static final Componentprivate TransferableSelectionListprivate longprivate PackSelectionScreen.WatcherFields inherited from class net.minecraft.client.gui.screens.Screen
CUBE_MAP, font, FOOTER_SEPARATOR, HEADER_SEPARATOR, height, INWORLD_FOOTER_SEPARATOR, INWORLD_HEADER_SEPARATOR, MENU_BACKGROUND, minecraft, PANORAMA, renderables, screenExecutor, title, widthFields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS -
Constructor Summary
ConstructorsConstructorDescriptionPackSelectionScreen(PackRepository p_275398_, Consumer<PackRepository> p_275659_, Path p_275522_, Component p_275337_) -
Method Summary
Modifier and TypeMethodDescriptionvoidprivate voidprotected static voidextractPackNames(Collection<Path> p_296218_) private ResourceLocationgetPackIcon(Pack p_99990_) protected voidinit()private ResourceLocationloadPackIcon(TextureManager p_100017_, Pack p_100018_) voidonClose()voidonFilesDrop(List<Path> p_100029_) private voidprivate voidreload()protected voidvoidtick()voidupdateFocus(TransferableSelectionList p_265419_) private voidupdateList(TransferableSelectionList p_100014_, Stream<PackSelectionModel.Entry> p_100015_) Methods inherited from class net.minecraft.client.gui.screens.Screen
added, addRenderableOnly, addRenderableWidget, addWidget, advancePanoramaTime, afterKeyboardAction, afterMouseAction, afterMouseMove, changeFocus, children, clearFocus, clearTooltipForNextRenderPass, clearWidgets, findNarratableWidget, getBackgroundMusic, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, keyPressed, narrationEnabled, rebuildWidgets, removed, removeWidget, render, renderBackground, renderBlurredBackground, renderMenuBackground, renderMenuBackground, renderMenuBackgroundTexture, renderPanorama, renderTransparentBackground, renderWithTooltip, resize, setInitialFocus, setInitialFocus, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldCloseOnEsc, shouldNarrateNavigation, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, wrapScreenErrorMethods 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
mouseMovedMethods 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
-
LIST_WIDTH
private static final int LIST_WIDTH- 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
-
packDir
-
doneButton
-
packIcons
-
-
Constructor Details
-
PackSelectionScreen
public PackSelectionScreen(PackRepository p_275398_, Consumer<PackRepository> p_275659_, Path p_275522_, Component p_275337_)
-
-
Method Details
-
onClose
public void onClose() -
closeWatcher
private void closeWatcher() -
init
protected void init() -
repositionElements
protected void repositionElements()- Overrides:
repositionElementsin classScreen
-
tick
public void tick() -
populateLists
private void populateLists() -
updateList
private void updateList(TransferableSelectionList p_100014_, Stream<PackSelectionModel.Entry> p_100015_) -
updateFocus
-
clearSelected
public void clearSelected() -
reload
private void reload() -
copyPacks
-
onFilesDrop
- Overrides:
onFilesDropin classScreen
-
extractPackNames
-
loadPackIcon
-
getPackIcon
-