@Environment(value=CLIENT) public class PackScreen extends Screen
Modifier and Type | Class and Description |
---|---|
(package private) static class |
PackScreen.DirectoryWatcher |
Modifier and Type | Field and Description |
---|---|
private PackListWidget |
availablePackList |
private PackScreen.DirectoryWatcher |
directoryWatcher |
private ButtonWidget |
doneButton |
private static Text |
DROP_INFO |
private long |
field_25788 |
private Map<String,Identifier> |
field_25789 |
private File |
file |
private static Text |
FOLDER_INFO |
private static Logger |
LOGGER |
private ResourcePackOrganizer |
organizer |
private Screen |
parent |
private PackListWidget |
selectedPackList |
private static Identifier |
UNKNOWN_PACK |
buttons, children, client, height, itemRenderer, passEvents, textRenderer, title, width
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
Constructor and Description |
---|
PackScreen(Screen parent,
ResourcePackManager packManager,
Consumer<ResourcePackManager> consumer,
File file,
Text title) |
Modifier and Type | Method and Description |
---|---|
private void |
closeDirectoryWatcher() |
void |
filesDragged(List<Path> paths) |
protected void |
init()
Called when a screen should be initialized.
|
protected static void |
method_29669(MinecraftClient minecraftClient,
List<Path> list,
Path path) |
private Identifier |
method_30287(ResourcePackProfile resourcePackProfile) |
private Identifier |
method_30289(TextureManager textureManager,
ResourcePackProfile resourcePackProfile) |
void |
onClose() |
private void |
refresh() |
void |
render(MatrixStack matrices,
int mouseX,
int mouseY,
float delta) |
void |
tick() |
private void |
updatePackList(PackListWidget widget,
Stream<ResourcePackOrganizer.Pack> packs) |
private void |
updatePackLists() |
addButton, addChild, children, getNarrationMessage, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, keyPressed, removed, renderBackground, renderBackground, renderBackgroundTexture, renderOrderedTooltip, renderTextHoverEffect, renderTooltip, renderTooltip, renderTooltip, resize, sendMessage, sendMessage, shouldCloseOnEsc, wrapScreenError
getFocused, isDragging, setDragging, setFocused
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, setZOffset
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
changeFocus, charTyped, focusOn, hoveredElement, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setInitialFocus
mouseMoved
private static final Logger LOGGER
private static final Text DROP_INFO
private static final Text FOLDER_INFO
private static final Identifier UNKNOWN_PACK
private final ResourcePackOrganizer organizer
private final Screen parent
@Nullable private PackScreen.DirectoryWatcher directoryWatcher
private long field_25788
private PackListWidget availablePackList
private PackListWidget selectedPackList
private final File file
private ButtonWidget doneButton
private final Map<String,Identifier> field_25789
public PackScreen(Screen parent, ResourcePackManager packManager, Consumer<ResourcePackManager> consumer, File file, Text title)
private void closeDirectoryWatcher()
protected void init()
This method is called when this screen is opened
or resized.
public void tick()
tick
in interface TickableElement
tick
in class Screen
private void updatePackLists()
private void updatePackList(PackListWidget widget, Stream<ResourcePackOrganizer.Pack> packs)
private void refresh()
public void render(MatrixStack matrices, int mouseX, int mouseY, float delta)
protected static void method_29669(MinecraftClient minecraftClient, List<Path> list, Path path)
public void filesDragged(List<Path> paths)
filesDragged
in class Screen
private Identifier method_30289(TextureManager textureManager, ResourcePackProfile resourcePackProfile)
private Identifier method_30287(ResourcePackProfile resourcePackProfile)