Class PackSelectionScreen
java.lang.Object
net.minecraft.client.gui.GuiComponent
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
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.screens.Screen
Screen.NarratableSearchResult
-
Field Summary
Modifier and TypeFieldDescriptionprivate TransferableSelectionList
private static final ResourceLocation
private static final Component
private Button
private static final Component
private final Screen
private static final int
(package private) static final org.slf4j.Logger
private final PackSelectionModel
private final Path
private final Map<String,
ResourceLocation> private static final int
private TransferableSelectionList
private long
private PackSelectionScreen.Watcher
Fields inherited from class net.minecraft.client.gui.screens.Screen
font, height, itemRenderer, minecraft, passEvents, renderables, title, width
Fields inherited from class net.minecraft.client.gui.GuiComponent
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
Constructor Summary
ConstructorDescriptionPackSelectionScreen
(Screen p_250119_, PackRepository p_249296_, Consumer<PackRepository> p_250932_, Path p_251292_, Component p_251319_) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
protected static void
private ResourceLocation
getPackIcon
(Pack p_99990_) protected void
init()
private ResourceLocation
loadPackIcon
(TextureManager p_100017_, Pack p_100018_) void
onClose()
void
onFilesDrop
(List<Path> p_100029_) private void
private void
reload()
void
void
tick()
private void
updateList
(TransferableSelectionList p_100014_, Stream<PackSelectionModel.Entry> p_100015_) Methods inherited from class net.minecraft.client.gui.screens.Screen
addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, children, clearWidgets, findNarratableWidget, getMinecraft, getNarrationMessage, getTitle, getTooltipFromItem, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, hideWidgets, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, keyPressed, narrationEnabled, rebuildWidgets, removed, removeWidget, renderBackground, renderBackground, renderComponentHoverEffect, renderComponentTooltip, renderComponentTooltip, renderComponentTooltip, renderComponentTooltip, renderDirtBackground, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderWithTooltip, resize, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldCloseOnEsc, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, wrapScreenError
Methods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocused
Methods inherited from class net.minecraft.client.gui.GuiComponent
blit, blit, blit, blit, blit, blitOutlineBlack, disableScissor, drawCenteredString, drawCenteredString, drawCenteredString, drawString, drawString, drawString, enableScissor, fill, fillGradient, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLine
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
changeFocus, charTyped, getChildAt, keyReleased, magicalSpecialHackyFocus, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setInitialFocus
Methods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
mouseMoved
-
Field Details
-
LOGGER
static final org.slf4j.Logger LOGGER -
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
-
model
-
lastScreen
-
watcher
-
ticksToReload
private long ticksToReload -
availablePackList
-
selectedPackList
-
packDir
-
doneButton
-
packIcons
-
-
Constructor Details
-
PackSelectionScreen
public PackSelectionScreen(Screen p_250119_, PackRepository p_249296_, Consumer<PackRepository> p_250932_, Path p_251292_, Component p_251319_)
-
-
Method Details
-
onClose
public void onClose() -
closeWatcher
private void closeWatcher() -
init
protected void init() -
tick
public void tick() -
populateLists
private void populateLists() -
updateList
private void updateList(TransferableSelectionList p_100014_, Stream<PackSelectionModel.Entry> p_100015_) -
reload
private void reload() -
render
- Specified by:
render
in interfaceRenderable
- Overrides:
render
in classScreen
-
copyPacks
-
onFilesDrop
- Overrides:
onFilesDrop
in classScreen
-
loadPackIcon
-
getPackIcon
-