Class PackListWidget.ResourcePackEntry
java.lang.Object
net.minecraft.client.gui.widget.EntryListWidget.Entry<PackListWidget.class_11778>
net.minecraft.client.gui.widget.AlwaysSelectedEntryListWidget.Entry<PackListWidget.class_11778>
net.minecraft.client.gui.screen.pack.PackListWidget.class_11778
net.minecraft.client.gui.screen.pack.PackListWidget.ResourcePackEntry
- All Implemented Interfaces:
Element,Narratable,Navigable,Widget
- Enclosing class:
PackListWidget
@Environment(CLIENT)
public class PackListWidget.ResourcePackEntry
extends PackListWidget.class_11778
- Mappings:
Namespace Name named net/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntryintermediary net/minecraft/class_521$class_4271official gmt$c
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final MinecraftClientprivate final MultilineTextprivate final MultilineTextprivate final OrderedTextprivate static final Stringprivate static final intprivate static final intprivate final OrderedTextprivate final ResourcePackOrganizer.Packprivate final PackListWidgetFields inherited from class net.minecraft.client.gui.widget.EntryListWidget.Entry
PADDING -
Constructor Summary
ConstructorsConstructorDescriptionResourcePackEntry(MinecraftClient minecraftClient, PackListWidget packListWidget, ResourcePackOrganizer.Pack pack) -
Method Summary
Modifier and TypeMethodDescriptionprivate static MultilineTextcreateMultilineText(MinecraftClient client, Text text) private voidenable()getName()private booleanbooleankeyPressed(int keyCode, int scanCode, int modifiers) Callback for when a key down event has been captured.booleanbooleanmouseClicked(double mouseX, double mouseY, int button, boolean doubleClick) Callback for when a mouse button down event has been captured.private voidprivate voidvoidrender(DrawContext context, int mouseX, int mouseY, boolean hovered, float deltaTicks) Renders an entry in a list.voidtoggle()private static OrderedTexttrimTextToWidth(MinecraftClient client, Text text) Methods inherited from class net.minecraft.client.gui.screen.pack.PackListWidget.class_11778
getWidthMethods inherited from class net.minecraft.client.gui.widget.AlwaysSelectedEntryListWidget.Entry
appendNarrationsMethods inherited from class net.minecraft.client.gui.widget.EntryListWidget.Entry
forEachChild, getContentBottomEnd, getContentHeight, getContentMiddleX, getContentMiddleY, getContentRightEnd, getContentWidth, getContentX, getContentY, getHeight, getNavigationFocus, getX, getY, isFocused, isMouseOver, setFocused, setHeight, setWidth, setX, setYMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.Element
charTyped, getBorder, getFocusedPath, getNavigationPath, keyReleased, mouseDragged, mouseMoved, mouseReleased, mouseScrolledMethods inherited from interface net.minecraft.client.gui.navigation.Navigable
getNavigationOrderMethods inherited from interface net.minecraft.client.gui.widget.Widget
setPosition
-
Field Details
-
field_32403
private static final int field_32403- See Also:
- Mappings:
Namespace Name Mixin selector named field_32403Lnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;field_32403:Iintermediary field_32403Lnet/minecraft/class_521$class_4271;field_32403:Iofficial dLgmt$c;d:I
-
field_32404
private static final int field_32404- See Also:
- Mappings:
Namespace Name Mixin selector named field_32404Lnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;field_32404:Iintermediary field_32404Lnet/minecraft/class_521$class_4271;field_32404:Iofficial eLgmt$c;e:I
-
ELLIPSIS
- See Also:
- Mappings:
Namespace Name Mixin selector named ELLIPSISLnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;ELLIPSIS:Ljava/lang/String;intermediary field_32405Lnet/minecraft/class_521$class_4271;field_32405:Ljava/lang/String;official fLgmt$c;f:Ljava/lang/String;
-
widget
- Mappings:
Namespace Name Mixin selector named widgetLnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;widget:Lnet/minecraft/client/gui/screen/pack/PackListWidget;intermediary field_19130Lnet/minecraft/class_521$class_4271;field_19130:Lnet/minecraft/class_521;official hLgmt$c;h:Lgmt;
-
client
- Mappings:
Namespace Name Mixin selector named clientLnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;client:Lnet/minecraft/client/MinecraftClient;intermediary field_19128Lnet/minecraft/class_521$class_4271;field_19128:Lnet/minecraft/class_310;official bLgmt$c;b:Lfwe;
-
pack
- Mappings:
Namespace Name Mixin selector named packLnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;pack:Lnet/minecraft/client/gui/screen/pack/ResourcePackOrganizer$Pack;intermediary field_19129Lnet/minecraft/class_521$class_4271;field_19129:Lnet/minecraft/class_5369$class_5371;official iLgmt$c;i:Lgmr$a;
-
displayName
- Mappings:
Namespace Name Mixin selector named displayNameLnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;displayName:Lnet/minecraft/text/OrderedText;intermediary field_26590Lnet/minecraft/class_521$class_4271;field_26590:Lnet/minecraft/class_5481;official jLgmt$c;j:Lbcf;
-
description
- Mappings:
Namespace Name Mixin selector named descriptionLnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;description:Lnet/minecraft/client/font/MultilineText;intermediary field_26591Lnet/minecraft/class_521$class_4271;field_26591:Lnet/minecraft/class_5489;official kLgmt$c;k:Lgak;
-
incompatibleText
- Mappings:
Namespace Name Mixin selector named incompatibleTextLnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;incompatibleText:Lnet/minecraft/text/OrderedText;intermediary field_26784Lnet/minecraft/class_521$class_4271;field_26784:Lnet/minecraft/class_5481;official lLgmt$c;l:Lbcf;
-
compatibilityNotificationText
- Mappings:
Namespace Name Mixin selector named compatibilityNotificationTextLnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;compatibilityNotificationText:Lnet/minecraft/client/font/MultilineText;intermediary field_26785Lnet/minecraft/class_521$class_4271;field_26785:Lnet/minecraft/class_5489;official mLgmt$c;m:Lgak;
-
-
Constructor Details
-
ResourcePackEntry
public ResourcePackEntry(MinecraftClient minecraftClient, PackListWidget packListWidget, ResourcePackOrganizer.Pack pack)
-
-
Method Details
-
trimTextToWidth
- Mappings:
Namespace Name Mixin selector named trimTextToWidthLnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;trimTextToWidth(Lnet/minecraft/client/MinecraftClient;Lnet/minecraft/text/Text;)Lnet/minecraft/text/OrderedText;intermediary method_31229Lnet/minecraft/class_521$class_4271;method_31229(Lnet/minecraft/class_310;Lnet/minecraft/class_2561;)Lnet/minecraft/class_5481;official aLgmt$c;a(Lfwe;Lxv;)Lbcf;
-
createMultilineText
- Mappings:
Namespace Name Mixin selector named createMultilineTextLnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;createMultilineText(Lnet/minecraft/client/MinecraftClient;Lnet/minecraft/text/Text;)Lnet/minecraft/client/font/MultilineText;intermediary method_31230Lnet/minecraft/class_521$class_4271;method_31230(Lnet/minecraft/class_310;Lnet/minecraft/class_2561;)Lnet/minecraft/class_5489;official bLgmt$c;b(Lfwe;Lxv;)Lgak;
-
getNarration
- Specified by:
getNarrationin classAlwaysSelectedEntryListWidget.Entry<PackListWidget.class_11778>- Mappings:
Namespace Name Mixin selector named getNarrationLnet/minecraft/client/gui/widget/AlwaysSelectedEntryListWidget$Entry;getNarration()Lnet/minecraft/text/Text;intermediary method_37006Lnet/minecraft/class_4280$class_4281;method_37006()Lnet/minecraft/class_2561;official aLgan$a;a()Lxv;
-
render
Renders an entry in a list.- Specified by:
renderin classEntryListWidget.Entry<PackListWidget.class_11778>- Mappings:
Namespace Name Mixin selector named renderLnet/minecraft/client/gui/widget/EntryListWidget$Entry;render(Lnet/minecraft/client/gui/DrawContext;IIZF)Vintermediary method_25343Lnet/minecraft/class_350$class_351;method_25343(Lnet/minecraft/class_332;IIZF)Vofficial aLfzk$a;a(Lfze;IIZF)V
-
getName
- Specified by:
getNamein classPackListWidget.class_11778- Mappings:
Namespace Name Mixin selector named getNameLnet/minecraft/client/gui/screen/pack/PackListWidget$class_11778;getName()Ljava/lang/String;intermediary method_48279Lnet/minecraft/class_521$class_11778;method_48279()Ljava/lang/String;official bLgmt$a;b()Ljava/lang/String;
-
isSelectable
private boolean isSelectable()- Mappings:
Namespace Name Mixin selector named isSelectableLnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;isSelectable()Zintermediary method_20152Lnet/minecraft/class_521$class_4271;method_20152()Zofficial eLgmt$c;e()Z
-
keyPressed
public boolean keyPressed(int keyCode, int scanCode, int modifiers) Callback for when a key down event has been captured. The key code is identified by the constants inGLFWclass.- Parameters:
keyCode- the named key code of the event as described in theGLFWclassscanCode- the unique/platform-specific scan code of the keyboard inputmodifiers- a GLFW bitfield describing the modifier keys that are held down (see GLFW Modifier key flags)- Returns:
trueto indicate that the event handling is successful/valid- See Also:
- Mappings:
Namespace Name Mixin selector named keyPressedLnet/minecraft/client/gui/Element;keyPressed(III)Zintermediary method_25404Lnet/minecraft/class_364;method_25404(III)Zofficial aLgcx;a(III)Z
-
toggle
public void toggle()- Mappings:
Namespace Name Mixin selector named toggleLnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;toggle()Vintermediary method_48280Lnet/minecraft/class_521$class_4271;method_48280()Vofficial cLgmt$c;c()V
-
moveTowardStart
private void moveTowardStart()- Mappings:
Namespace Name Mixin selector named moveTowardStartLnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;moveTowardStart()Vintermediary method_48281Lnet/minecraft/class_521$class_4271;method_48281()Vofficial fLgmt$c;f()V
-
moveTowardEnd
private void moveTowardEnd()- Mappings:
Namespace Name Mixin selector named moveTowardEndLnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;moveTowardEnd()Vintermediary method_48282Lnet/minecraft/class_521$class_4271;method_48282()Vofficial tLgmt$c;t()V
-
enable
private void enable()- Mappings:
Namespace Name Mixin selector named enableLnet/minecraft/client/gui/screen/pack/PackListWidget$ResourcePackEntry;enable()Vintermediary method_48478Lnet/minecraft/class_521$class_4271;method_48478()Vofficial uLgmt$c;u()V
-
method_72784
public boolean method_72784()- Mappings:
Namespace Name Mixin selector named method_72784Lnet/minecraft/client/gui/Element;method_72784()Zintermediary method_72784Lnet/minecraft/class_364;method_72784()Zofficial GLgcx;G()Z
-
mouseClicked
public boolean mouseClicked(double mouseX, double mouseY, int button, boolean doubleClick) Callback for when a mouse button down event has been captured. The button number is identified by the constants inGLFWclass.- Specified by:
mouseClickedin interfaceElement- Overrides:
mouseClickedin classAlwaysSelectedEntryListWidget.Entry<PackListWidget.class_11778>- Parameters:
mouseX- the X coordinate of the mousemouseY- the Y coordinate of the mousebutton- the mouse button number- Returns:
trueto indicate that the event handling is successful/valid- See Also:
- Mappings:
Namespace Name Mixin selector named mouseClickedLnet/minecraft/client/gui/Element;mouseClicked(DDIZ)Zintermediary method_25402Lnet/minecraft/class_364;method_25402(DDIZ)Zofficial aLgcx;a(DDIZ)Z
-