类 PackSelectionScreen
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.packs.PackSelectionScreen
- 所有已实现的接口:
ContainerEventHandler
,GuiEventListener
,Renderable
,TabOrderedElement
-
嵌套类概要
嵌套类从类继承的嵌套类/接口 net.minecraft.client.gui.screens.Screen
Screen.NarratableSearchResult
-
字段概要
字段修饰符和类型字段说明private TransferableSelectionList
private static final ResourceLocation
private static final Component
private Button
private static final Component
private static final int
(专用程序包) 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
从类继承的字段 net.minecraft.client.gui.screens.Screen
BACKGROUND_LOCATION, font, height, minecraft, renderables, screenExecutor, title, width
从接口继承的字段 net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
构造器概要
构造器构造器说明PackSelectionScreen
(PackRepository pRepository, Consumer<PackRepository> pOutput, Path pPackDir, Component pTitle) -
方法概要
修饰符和类型方法说明void
private void
protected static void
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()
void
render
(GuiGraphics pGuiGraphics, int pMouseX, int pMouseY, float pPartialTick) void
tick()
void
updateFocus
(TransferableSelectionList pSelection) private void
updateList
(TransferableSelectionList pSelection, Stream<PackSelectionModel.Entry> pModels) 从类继承的方法 net.minecraft.client.gui.screens.Screen
added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, changeFocus, children, clearWidgets, findNarratableWidget, getBackgroundMusic, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, hideWidgets, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, keyPressed, narrationEnabled, rebuildWidgets, removed, removeWidget, renderBackground, renderDirtBackground, renderWithTooltip, repositionElements, resize, setInitialFocus, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldCloseOnEsc, shouldNarrateNavigation, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, wrapScreenError
从类继承的方法 net.minecraft.client.gui.components.events.AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocused
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraft.client.gui.components.events.ContainerEventHandler
charTyped, getChildAt, getCurrentFocusPath, isFocused, keyReleased, magicalSpecialHackyFocus, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, nextFocusPath, setFocused
从接口继承的方法 net.minecraft.client.gui.components.events.GuiEventListener
mouseMoved
从接口继承的方法 net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
字段详细资料
-
LOGGER
static final org.slf4j.Logger LOGGER -
LIST_WIDTH
private static final int LIST_WIDTH- 另请参阅:
-
DRAG_AND_DROP
-
DIRECTORY_BUTTON_TOOLTIP
-
RELOAD_COOLDOWN
private static final int RELOAD_COOLDOWN- 另请参阅:
-
DEFAULT_ICON
-
model
-
watcher
-
ticksToReload
private long ticksToReload -
availablePackList
-
selectedPackList
-
packDir
-
doneButton
-
packIcons
-
-
构造器详细资料
-
PackSelectionScreen
public PackSelectionScreen(PackRepository pRepository, Consumer<PackRepository> pOutput, Path pPackDir, Component pTitle)
-
-
方法详细资料
-
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 pSelection, Stream<PackSelectionModel.Entry> pModels) -
updateFocus
-
clearSelected
public void clearSelected() -
reload
private void reload() -
render
- 指定者:
render
在接口中Renderable
- 覆盖:
render
在类中Screen
-
copyPacks
-
onFilesDrop
- 覆盖:
onFilesDrop
在类中Screen
-
loadPackIcon
-
getPackIcon
-