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 Component
private TransferableSelectionList
private static final ResourceLocation
private static final Component
private Button
private static final Component
private final HeaderAndFooterLayout
private static final int
(package private) static final org.slf4j.Logger
private final PackSelectionModel
private static final Component
private final Path
private final Map
<String, ResourceLocation> private static final int
private static final Component
private TransferableSelectionList
private long
private PackSelectionScreen.Watcher
Fields 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, narratorButton, PANORAMA, renderables, screenExecutor, title, width
Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
Constructor Summary
ConstructorsConstructorDescriptionPackSelectionScreen
(PackRepository pRepository, Consumer<PackRepository> pOutput, Path pPackDir, Component pTitle) -
Method Summary
Modifier and TypeMethodDescriptionvoid
private void
protected static void
extractPackNames
(Collection<Path> pPaths) private ResourceLocation
getPackIcon
(Pack p_99990_) protected void
init()
private ResourceLocation
loadPackIcon
(TextureManager pTextureManager, Pack pPack) void
onClose()
void
onFilesDrop
(List<Path> pPacks) private void
private void
reload()
protected void
void
tick()
void
updateFocus
(TransferableSelectionList pSelection) private void
updateList
(TransferableSelectionList pSelection, Stream<PackSelectionModel.Entry> pModels) Methods inherited from class net.minecraft.client.gui.screens.Screen
added, addRenderableOnly, addRenderableWidget, addWidget, 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, rebuildWidgets, removed, removeWidget, render, renderBackground, renderBlurredBackground, renderMenuBackground, renderMenuBackground, renderMenuBackgroundTexture, renderPanorama, renderTransparentBackground, renderWithTooltip, resize, setInitialFocus, setInitialFocus, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldCloseOnEsc, shouldNarrateNavigation, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, updateNarratorStatus, wrapScreenError
Methods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocused
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.components.events.ContainerEventHandler
charTyped, getChildAt, getCurrentFocusPath, isFocused, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, nextFocusPath, setFocused
Methods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
mouseMoved
Methods 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 pRepository, Consumer<PackRepository> pOutput, Path pPackDir, Component pTitle)
-
-
Method Details
-
onClose
public void onClose() -
closeWatcher
private void closeWatcher() -
init
protected void init() -
repositionElements
protected void repositionElements()- Overrides:
repositionElements
in classScreen
-
tick
public void tick() -
populateLists
private void populateLists() -
updateList
private void updateList(TransferableSelectionList pSelection, Stream<PackSelectionModel.Entry> pModels) -
updateFocus
-
clearSelected
public void clearSelected() -
reload
private void reload() -
copyPacks
-
onFilesDrop
- Overrides:
onFilesDrop
in classScreen
-
extractPackNames
-
loadPackIcon
-
getPackIcon
-