Package net.minecraft.client.gui.screen
Class PackScreen
java.lang.Object
net.minecraft.client.gui.AbstractGui
net.minecraft.client.gui.FocusableGui
net.minecraft.client.gui.screen.Screen
net.minecraft.client.gui.screen.PackScreen
- All Implemented Interfaces:
IGuiEventListener
,INestedGuiEventHandler
,IRenderable
,IScreen
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate ResourcePackList
private static final ResourceLocation
private static final ITextComponent
private Button
private static final ITextComponent
private final Screen
private static final org.apache.logging.log4j.Logger
private final PackLoadingManager
private final File
private final Map<String,
ResourceLocation> private ResourcePackList
private long
private PackScreen.PackDirectoryWatcher
Fields inherited from class net.minecraft.client.gui.screen.Screen
buttons, children, font, height, itemRenderer, minecraft, passEvents, title, width
Fields inherited from class net.minecraft.client.gui.AbstractGui
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
-
Constructor Summary
ConstructorDescriptionPackScreen
(Screen p_i242060_1_, ResourcePackList p_i242060_2_, Consumer<ResourcePackList> p_i242060_3_, File p_i242060_4_, ITextComponent p_i242060_5_) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
protected static void
private ResourceLocation
getPackIcon
(ResourcePackInfo p_243395_1_) protected void
init()
private ResourceLocation
loadPackIcon
(TextureManager p_243397_1_, ResourcePackInfo p_243397_2_) void
onClose()
void
onFilesDrop
(List<Path> p_230476_1_) private void
private void
reload()
void
render
(MatrixStack p_230430_1_, int p_230430_2_, int p_230430_3_, float p_230430_4_) void
tick()
private void
updateList
(ResourcePackList p_238899_1_, Stream<PackLoadingManager.IPack> p_238899_2_) Methods inherited from class net.minecraft.client.gui.screen.Screen
addButton, addWidget, children, getMinecraft, getNarrationMessage, getTitle, getTooltipFromItem, handleComponentClicked, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, keyPressed, removed, renderBackground, renderBackground, renderComponentHoverEffect, renderComponentTooltip, renderDirtBackground, renderTooltip, renderTooltip, renderTooltip, renderToolTip, renderWrappedToolTip, resize, sendMessage, sendMessage, shouldCloseOnEsc, wrapScreenError
Methods inherited from class net.minecraft.client.gui.FocusableGui
getFocused, isDragging, setDragging, setFocused
Methods inherited from class net.minecraft.client.gui.AbstractGui
blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, 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.IGuiEventListener
mouseMoved
Methods inherited from interface net.minecraft.client.gui.INestedGuiEventHandler
changeFocus, charTyped, getChildAt, keyReleased, magicalSpecialHackyFocus, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setInitialFocus
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
DRAG_AND_DROP
-
DIRECTORY_BUTTON_TOOLTIP
-
DEFAULT_ICON
-
model
-
lastScreen
-
watcher
-
ticksToReload
private long ticksToReload -
availablePackList
-
selectedPackList
-
packDir
-
doneButton
-
packIcons
-
-
Constructor Details
-
PackScreen
public PackScreen(Screen p_i242060_1_, ResourcePackList p_i242060_2_, Consumer<ResourcePackList> p_i242060_3_, File p_i242060_4_, ITextComponent p_i242060_5_)
-
-
Method Details
-
onClose
public void onClose() -
closeWatcher
private void closeWatcher() -
init
protected void init() -
tick
public void tick() -
populateLists
private void populateLists() -
updateList
-
reload
private void reload() -
render
- Specified by:
render
in interfaceIRenderable
- Overrides:
render
in classScreen
-
copyPacks
-
onFilesDrop
- Overrides:
onFilesDrop
in classScreen
-
loadPackIcon
-
getPackIcon
-