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 AbstractSelectionList.Entry
CONTENT_PADDING, list -
Constructor Summary
ConstructorsConstructorDescriptionPackEntry(Minecraft minecraft, TransferableSelectionList parent, PackSelectionModel.Entry pack) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidprivate voidprivate voidvoidbooleankeyPressed(KeyEvent event) booleanmouseClicked(MouseButtonEvent event, boolean doubleClick) voidrenderContent(GuiGraphics graphics, int mouseX, int mouseY, boolean hovered, float a) booleanprivate booleanMethods inherited from class TransferableSelectionList.Entry
getWidthMethods inherited from class ObjectSelectionList.Entry
updateNarrationMethods inherited from class 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 Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface GuiEventListener
charTyped, getBorderForArrowNavigation, getCurrentFocusPath, keyReleased, mouseDragged, mouseMoved, mouseReleased, mouseScrolled, nextFocusPathMethods inherited from interface LayoutElement
setPositionMethods inherited from interface SelectableEntry
mouseOverBottomLeftQuarter, mouseOverBottomRightQuarter, mouseOverIcon, mouseOverLeftHalf, mouseOverRightHalf, mouseOverTopLeftQuarter, mouseOverTopRightQuarterMethods inherited from interface 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
- 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
-