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,SelectableEntry,TabOrderedElement,LayoutElement,NarrationSupplier
- Enclosing class:
TransferableSelectionList
public class TransferableSelectionList.PackEntry
extends TransferableSelectionList.Entry
implements SelectableEntry
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final MultiLineTextWidgetstatic final intprivate static final intprotected final Minecraftprivate final StringWidgetprivate final PackSelectionModel.Entryprivate final TransferableSelectionListFields inherited from class net.minecraft.client.gui.components.AbstractSelectionList.Entry
CONTENT_PADDING, list -
Constructor Summary
ConstructorsConstructorDescriptionPackEntry(Minecraft minecraft, TransferableSelectionList parent, PackSelectionModel.Entry pack) -
Method Summary
Modifier and TypeMethodDescriptionprivate 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.SelectableEntry
mouseOverBottomLeftQuarter, mouseOverBottomRightQuarter, mouseOverIcon, mouseOverLeftHalf, mouseOverRightHalf, mouseOverTopLeftQuarter, mouseOverTopRightQuarterMethods 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:
-
ICON_SIZE
public static final int ICON_SIZE- See Also:
-
parent
-
minecraft
-
pack
-
nameWidget
-
descriptionWidget
-
-
Constructor Details
-
PackEntry
public PackEntry(Minecraft minecraft, TransferableSelectionList parent, PackSelectionModel.Entry pack)
-
-
Method Details
-
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>
-
mouseClicked
- Specified by:
mouseClickedin interfaceGuiEventListener- Overrides:
mouseClickedin classObjectSelectionList.Entry<TransferableSelectionList.Entry>
-
keyPressed
- Specified by:
keyPressedin interfaceGuiEventListener
-
showHoverOverlay
private boolean showHoverOverlay() -
keyboardSelection
public void keyboardSelection() -
keyboardMoveUp
private void keyboardMoveUp() -
keyboardMoveDown
private void keyboardMoveDown() -
handlePackSelection
private void handlePackSelection() -
getPackId
- Specified by:
getPackIdin classTransferableSelectionList.Entry
-
shouldTakeFocusAfterInteraction
public boolean shouldTakeFocusAfterInteraction()- Specified by:
shouldTakeFocusAfterInteractionin interfaceGuiEventListener
-