类 PackScreen
- java.lang.Object
-
- net.minecraft.client.gui.DrawableHelper
-
- net.minecraft.client.gui.AbstractParentElement
-
- net.minecraft.client.gui.screen.Screen
-
- net.minecraft.client.gui.screen.pack.PackScreen
-
- 所有已实现的接口:
Drawable,Element,ParentElement,TickableElement
@Environment(CLIENT) public class PackScreen extends Screen
- Mappings:
Namespace Name official ebxintermediary net/minecraft/class_5375named net/minecraft/client/gui/screen/pack/PackScreen
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 (专用程序包) static classPackScreen.DirectoryWatcher
-
字段概要
字段 修饰符和类型 字段 说明 private PackListWidgetavailablePackListprivate @Nullable PackScreen.DirectoryWatcherdirectoryWatcherprivate ButtonWidgetdoneButtonprivate static TextDROP_INFOprivate longfield_25788private static intfield_32395private static intfield_32396private Filefileprivate static TextFOLDER_INFOprivate Map<String,Identifier>iconTexturesprivate static LoggerLOGGERprivate ResourcePackOrganizerorganizerprivate Screenparentprivate PackListWidgetselectedPackListprivate static IdentifierUNKNOWN_PACK-
从类继承的字段 net.minecraft.client.gui.screen.Screen
buttons, children, client, height, itemRenderer, passEvents, textRenderer, title, width
-
从类继承的字段 net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
-
-
构造器概要
构造器 构造器 说明 PackScreen(Screen parent, ResourcePackManager packManager, Consumer<ResourcePackManager> consumer, File file, Text title)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 private voidcloseDirectoryWatcher()protected static voidcopyPacks(MinecraftClient client, List<Path> srcPaths, Path destPath)voidfilesDragged(List<Path> paths)private IdentifiergetPackIconTexture(ResourcePackProfile resourcePackProfile)protected voidinit()Called when a screen should be initialized.private IdentifierloadPackIcon(TextureManager textureManager, ResourcePackProfile resourcePackProfile)voidonClose()private voidrefresh()voidrender(MatrixStack matrices, int mouseX, int mouseY, float delta)voidtick()private voidupdatePackList(PackListWidget widget, Stream<ResourcePackOrganizer.Pack> packs)private voidupdatePackLists()-
从类继承的方法 net.minecraft.client.gui.screen.Screen
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, renderTooltip, resize, sendMessage, sendMessage, shouldCloseOnEsc, wrapScreenError
-
从类继承的方法 net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocused
-
从类继承的方法 net.minecraft.client.gui.DrawableHelper
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, method_33284, method_35719, method_35720, setZOffset
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 net.minecraft.client.gui.Element
mouseMoved
-
从接口继承的方法 net.minecraft.client.gui.ParentElement
changeFocus, charTyped, focusOn, hoveredElement, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setInitialFocus
-
-
-
-
字段详细资料
-
LOGGER
private static final Logger LOGGER
- Mappings:
Namespace Name Mixin selector official aLebx;a:Lorg/apache/logging/log4j/Logger;intermediary field_25464Lnet/minecraft/class_5375;field_25464:Lorg/apache/logging/log4j/Logger;named LOGGERLnet/minecraft/client/gui/screen/pack/PackScreen;LOGGER:Lorg/apache/logging/log4j/Logger;
-
field_32395
private static final int field_32395
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official bLebx;b:Iintermediary field_32395Lnet/minecraft/class_5375;field_32395:Inamed field_32395Lnet/minecraft/client/gui/screen/pack/PackScreen;field_32395:I
-
DROP_INFO
private static final Text DROP_INFO
- Mappings:
Namespace Name Mixin selector official cLebx;c:Lon;intermediary field_25465Lnet/minecraft/class_5375;field_25465:Lnet/minecraft/class_2561;named DROP_INFOLnet/minecraft/client/gui/screen/pack/PackScreen;DROP_INFO:Lnet/minecraft/text/Text;
-
FOLDER_INFO
private static final Text FOLDER_INFO
- Mappings:
Namespace Name Mixin selector official pLebx;p:Lon;intermediary field_25466Lnet/minecraft/class_5375;field_25466:Lnet/minecraft/class_2561;named FOLDER_INFOLnet/minecraft/client/gui/screen/pack/PackScreen;FOLDER_INFO:Lnet/minecraft/text/Text;
-
field_32396
private static final int field_32396
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official qLebx;q:Iintermediary field_32396Lnet/minecraft/class_5375;field_32396:Inamed field_32396Lnet/minecraft/client/gui/screen/pack/PackScreen;field_32396:I
-
UNKNOWN_PACK
private static final Identifier UNKNOWN_PACK
- Mappings:
Namespace Name Mixin selector official rLebx;r:Lwp;intermediary field_25786Lnet/minecraft/class_5375;field_25786:Lnet/minecraft/class_2960;named UNKNOWN_PACKLnet/minecraft/client/gui/screen/pack/PackScreen;UNKNOWN_PACK:Lnet/minecraft/util/Identifier;
-
organizer
private final ResourcePackOrganizer organizer
- Mappings:
Namespace Name Mixin selector official sLebx;s:Lebw;intermediary field_25468Lnet/minecraft/class_5375;field_25468:Lnet/minecraft/class_5369;named organizerLnet/minecraft/client/gui/screen/pack/PackScreen;organizer:Lnet/minecraft/client/gui/screen/pack/ResourcePackOrganizer;
-
parent
private final Screen parent
- Mappings:
Namespace Name Mixin selector official tLebx;t:Ldzg;intermediary field_25469Lnet/minecraft/class_5375;field_25469:Lnet/minecraft/class_437;named parentLnet/minecraft/client/gui/screen/pack/PackScreen;parent:Lnet/minecraft/client/gui/screen/Screen;
-
directoryWatcher
@Nullable private @Nullable PackScreen.DirectoryWatcher directoryWatcher
- Mappings:
Namespace Name Mixin selector official uLebx;u:Lebx$a;intermediary field_25787Lnet/minecraft/class_5375;field_25787:Lnet/minecraft/class_5375$class_5426;named directoryWatcherLnet/minecraft/client/gui/screen/pack/PackScreen;directoryWatcher:Lnet/minecraft/client/gui/screen/pack/PackScreen$DirectoryWatcher;
-
field_25788
private long field_25788
- Mappings:
Namespace Name Mixin selector official vLebx;v:Jintermediary field_25788Lnet/minecraft/class_5375;field_25788:Jnamed field_25788Lnet/minecraft/client/gui/screen/pack/PackScreen;field_25788:J
-
availablePackList
private PackListWidget availablePackList
- Mappings:
Namespace Name Mixin selector official wLebx;w:Leby;intermediary field_25472Lnet/minecraft/class_5375;field_25472:Lnet/minecraft/class_521;named availablePackListLnet/minecraft/client/gui/screen/pack/PackScreen;availablePackList:Lnet/minecraft/client/gui/screen/pack/PackListWidget;
-
selectedPackList
private PackListWidget selectedPackList
- Mappings:
Namespace Name Mixin selector official xLebx;x:Leby;intermediary field_25473Lnet/minecraft/class_5375;field_25473:Lnet/minecraft/class_521;named selectedPackListLnet/minecraft/client/gui/screen/pack/PackScreen;selectedPackList:Lnet/minecraft/client/gui/screen/pack/PackListWidget;
-
file
private final File file
- Mappings:
Namespace Name Mixin selector official yLebx;y:Ljava/io/File;intermediary field_25474Lnet/minecraft/class_5375;field_25474:Ljava/io/File;named fileLnet/minecraft/client/gui/screen/pack/PackScreen;file:Ljava/io/File;
-
doneButton
private ButtonWidget doneButton
- Mappings:
Namespace Name Mixin selector official zLebx;z:Ldvw;intermediary field_25475Lnet/minecraft/class_5375;field_25475:Lnet/minecraft/class_4185;named doneButtonLnet/minecraft/client/gui/screen/pack/PackScreen;doneButton:Lnet/minecraft/client/gui/widget/ButtonWidget;
-
iconTextures
private final Map<String,Identifier> iconTextures
- Mappings:
Namespace Name Mixin selector official ALebx;A:Ljava/util/Map;intermediary field_25789Lnet/minecraft/class_5375;field_25789:Ljava/util/Map;named iconTexturesLnet/minecraft/client/gui/screen/pack/PackScreen;iconTextures:Ljava/util/Map;
-
-
构造器详细资料
-
PackScreen
public PackScreen(Screen parent, ResourcePackManager packManager, Consumer<ResourcePackManager> consumer, File file, Text title)
- Mappings:
Namespace Name Mixin selector official <init>Lebx;<init>(Ldzg;Lada;Ljava/util/function/Consumer;Ljava/io/File;Lon;)Vintermediary <init>Lnet/minecraft/class_5375;<init>(Lnet/minecraft/class_437;Lnet/minecraft/class_3283;Ljava/util/function/Consumer;Ljava/io/File;Lnet/minecraft/class_2561;)Vnamed <init>Lnet/minecraft/client/gui/screen/pack/PackScreen;<init>(Lnet/minecraft/client/gui/screen/Screen;Lnet/minecraft/resource/ResourcePackManager;Ljava/util/function/Consumer;Ljava/io/File;Lnet/minecraft/text/Text;)V
-
-
方法详细资料
-
onClose
public void onClose()
-
closeDirectoryWatcher
private void closeDirectoryWatcher()
- Mappings:
Namespace Name Mixin selector official iLebx;i()Vintermediary method_30291Lnet/minecraft/class_5375;method_30291()Vnamed closeDirectoryWatcherLnet/minecraft/client/gui/screen/pack/PackScreen;closeDirectoryWatcher()V
-
init
protected void init()
Called when a screen should be initialized.This method is called when this screen is opened or resized.
-
tick
public void tick()
- 指定者:
tick在接口中TickableElement- 覆盖:
tick在类中Screen- Mappings:
Namespace Name Mixin selector official dLdwp;d()Vintermediary method_25393Lnet/minecraft/class_4893;method_25393()Vnamed tickLnet/minecraft/client/gui/screen/TickableElement;tick()V
-
updatePackLists
private void updatePackLists()
- Mappings:
Namespace Name Mixin selector official kLebx;k()Vintermediary method_29678Lnet/minecraft/class_5375;method_29678()Vnamed updatePackListsLnet/minecraft/client/gui/screen/pack/PackScreen;updatePackLists()V
-
updatePackList
private void updatePackList(PackListWidget widget, Stream<ResourcePackOrganizer.Pack> packs)
- Mappings:
Namespace Name Mixin selector official aLebx;a(Leby;Ljava/util/stream/Stream;)Vintermediary method_29673Lnet/minecraft/class_5375;method_29673(Lnet/minecraft/class_521;Ljava/util/stream/Stream;)Vnamed updatePackListLnet/minecraft/client/gui/screen/pack/PackScreen;updatePackList(Lnet/minecraft/client/gui/screen/pack/PackListWidget;Ljava/util/stream/Stream;)V
-
refresh
private void refresh()
- Mappings:
Namespace Name Mixin selector official lLebx;l()Vintermediary method_29680Lnet/minecraft/class_5375;method_29680()Vnamed refreshLnet/minecraft/client/gui/screen/pack/PackScreen;refresh()V
-
render
public void render(MatrixStack matrices, int mouseX, int mouseY, float delta)
- 指定者:
render在接口中Drawable- 覆盖:
render在类中Screen- Mappings:
Namespace Name Mixin selector official aLdws;a(Ldpi;IIF)Vintermediary method_25394Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_4587;IIF)Vnamed renderLnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/util/math/MatrixStack;IIF)V
-
copyPacks
protected static void copyPacks(MinecraftClient client, List<Path> srcPaths, Path destPath)
- Mappings:
Namespace Name Mixin selector official aLebx;a(Ldum;Ljava/util/List;Ljava/nio/file/Path;)Vintermediary method_29669Lnet/minecraft/class_5375;method_29669(Lnet/minecraft/class_310;Ljava/util/List;Ljava/nio/file/Path;)Vnamed copyPacksLnet/minecraft/client/gui/screen/pack/PackScreen;copyPacks(Lnet/minecraft/client/MinecraftClient;Ljava/util/List;Ljava/nio/file/Path;)V
-
filesDragged
public void filesDragged(List<Path> paths)
- 覆盖:
filesDragged在类中Screen- Mappings:
Namespace Name Mixin selector official aLdzg;a(Ljava/util/List;)Vintermediary method_29638Lnet/minecraft/class_437;method_29638(Ljava/util/List;)Vnamed filesDraggedLnet/minecraft/client/gui/screen/Screen;filesDragged(Ljava/util/List;)V
-
loadPackIcon
private Identifier loadPackIcon(TextureManager textureManager, ResourcePackProfile resourcePackProfile)
- Mappings:
Namespace Name Mixin selector official aLebx;a(Lewe;Lacy;)Lwp;intermediary method_30289Lnet/minecraft/class_5375;method_30289(Lnet/minecraft/class_1060;Lnet/minecraft/class_3288;)Lnet/minecraft/class_2960;named loadPackIconLnet/minecraft/client/gui/screen/pack/PackScreen;loadPackIcon(Lnet/minecraft/client/texture/TextureManager;Lnet/minecraft/resource/ResourcePackProfile;)Lnet/minecraft/util/Identifier;
-
getPackIconTexture
private Identifier getPackIconTexture(ResourcePackProfile resourcePackProfile)
- Mappings:
Namespace Name Mixin selector official aLebx;a(Lacy;)Lwp;intermediary method_30287Lnet/minecraft/class_5375;method_30287(Lnet/minecraft/class_3288;)Lnet/minecraft/class_2960;named getPackIconTextureLnet/minecraft/client/gui/screen/pack/PackScreen;getPackIconTexture(Lnet/minecraft/resource/ResourcePackProfile;)Lnet/minecraft/util/Identifier;
-
-