Class TransferableSelectionList.PackEntry
java.lang.Object
net.minecraft.client.gui.components.AbstractSelectionList.Entry<TransferableSelectionList.Entry>
net.minecraft.client.gui.components.ObjectSelectionList.Entry<TransferableSelectionList.Entry>
net.minecraft.client.gui.screens.packs.TransferableSelectionList.Entry
net.minecraft.client.gui.screens.packs.TransferableSelectionList.PackEntry
- All Implemented Interfaces:
GuiEventListener,TabOrderedElement,LayoutElement,NarrationSupplier
- Enclosing class:
TransferableSelectionList
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final MultiLineLabelprivate final MultiLineLabelprivate final FormattedCharSequenceprivate static final intprivate static final intprotected final Minecraftprivate final FormattedCharSequenceprivate final PackSelectionModel.Entryprivate final TransferableSelectionListprivate static final StringFields inherited from class net.minecraft.client.gui.components.AbstractSelectionList.Entry
CONTENT_PADDING, list -
Constructor Summary
ConstructorsConstructorDescriptionPackEntry(Minecraft minecraft, TransferableSelectionList parent, PackSelectionModel.Entry entry) -
Method Summary
Modifier and TypeMethodDescriptionprivate static MultiLineLabelcacheDescription(Minecraft minecraft, Component text) private static FormattedCharSequenceprivate voidprivate voidprivate voidvoidbooleankeyPressed(KeyEvent p_445822_) booleanmouseClicked(MouseButtonEvent p_447361_, boolean p_433742_) voidrenderContent(GuiGraphics p_440230_, int p_440699_, int p_439321_, boolean p_440248_, float p_439636_) booleanprivate booleanMethods inherited from class net.minecraft.client.gui.screens.packs.TransferableSelectionList.Entry
getWidthMethods inherited from class net.minecraft.client.gui.components.ObjectSelectionList.Entry
updateNarrationMethods inherited from class net.minecraft.client.gui.components.AbstractSelectionList.Entry
getContentBottom, getContentHeight, getContentRight, getContentWidth, getContentX, getContentXMiddle, getContentY, getContentYMiddle, getHeight, getRectangle, getX, getY, isFocused, isMouseOver, setFocused, setHeight, setWidth, setX, setY, visitWidgetsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
charTyped, getBorderForArrowNavigation, getCurrentFocusPath, keyReleased, mouseDragged, mouseMoved, mouseReleased, mouseScrolled, nextFocusPathMethods inherited from interface net.minecraft.client.gui.layouts.LayoutElement
setPositionMethods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Field Details
-
MAX_DESCRIPTION_WIDTH_PIXELS
private static final int MAX_DESCRIPTION_WIDTH_PIXELS- See Also:
-
MAX_NAME_WIDTH_PIXELS
private static final int MAX_NAME_WIDTH_PIXELS- See Also:
-
TOO_LONG_NAME_SUFFIX
- See Also:
-
parent
-
minecraft
-
pack
-
nameDisplayCache
-
descriptionDisplayCache
-
incompatibleNameDisplayCache
-
incompatibleDescriptionDisplayCache
-
-
Constructor Details
-
PackEntry
public PackEntry(Minecraft minecraft, TransferableSelectionList parent, PackSelectionModel.Entry entry)
-
-
Method Details
-
cacheName
-
cacheDescription
-
getNarration
- Specified by:
getNarrationin classObjectSelectionList.Entry<TransferableSelectionList.Entry>
-
renderContent
public void renderContent(GuiGraphics p_440230_, int p_440699_, int p_439321_, boolean p_440248_, float p_439636_) - Specified by:
renderContentin classAbstractSelectionList.Entry<TransferableSelectionList.Entry>
-
getPackId
- Specified by:
getPackIdin classTransferableSelectionList.Entry
-
showHoverOverlay
private boolean showHoverOverlay() -
keyPressed
-
keyboardSelection
public void keyboardSelection() -
keyboardMoveUp
private void keyboardMoveUp() -
keyboardMoveDown
private void keyboardMoveDown() -
handlePackSelection
private void handlePackSelection() -
shouldTakeFocusAfterInteraction
public boolean shouldTakeFocusAfterInteraction() -
mouseClicked
- Specified by:
mouseClickedin interfaceGuiEventListener- Overrides:
mouseClickedin classObjectSelectionList.Entry<TransferableSelectionList.Entry>
-