Class RealmsSelectWorldTemplateScreen.WorldTemplateObjectSelectionListEntry
java.lang.Object
net.minecraft.client.gui.widget.EntryListWidget.Entry<E>
net.minecraft.client.gui.widget.AlwaysSelectedEntryListWidget.Entry<RealmsSelectWorldTemplateScreen.WorldTemplateObjectSelectionListEntry>
net.minecraft.client.realms.gui.screen.RealmsSelectWorldTemplateScreen.WorldTemplateObjectSelectionListEntry
- All Implemented Interfaces:
Element
- Enclosing class:
- RealmsSelectWorldTemplateScreen
@Environment(CLIENT) class RealmsSelectWorldTemplateScreen.WorldTemplateObjectSelectionListEntry extends AlwaysSelectedEntryListWidget.Entry<RealmsSelectWorldTemplateScreen.WorldTemplateObjectSelectionListEntry>
-
Field Summary
Fields Modifier and Type Field Description private WorldTemplatemTemplate -
Constructor Summary
Constructors Constructor Description WorldTemplateObjectSelectionListEntry(WorldTemplate template) -
Method Summary
Modifier and Type Method Description private voiddrawIcons(MatrixStack matrixStack, int int2, int int3, int int4, int int5, String string, String string2, String string3)private voiddrawImage(MatrixStack matrixStack, int y, int xm, int ym, int int2, WorldTemplate worldTemplate)voidrender(MatrixStack matrices, int index, int y, int x, int entryWidth, int entryHeight, int mouseX, int mouseY, boolean hovered, float tickDelta)Renders an entry in a list.private voidrenderWorldTemplateItem(MatrixStack matrixStack, WorldTemplate worldTemplate, int int2, int int3, int int4, int int5)Methods inherited from class net.minecraft.client.gui.widget.AlwaysSelectedEntryListWidget.Entry
changeFocusMethods inherited from class net.minecraft.client.gui.widget.EntryListWidget.Entry
isMouseOverMethods 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, keyPressed, keyReleased, mouseClicked, mouseDragged, mouseMoved, mouseReleased, mouseScrolled
-
Field Details
-
mTemplate
-
-
Constructor Details
-
WorldTemplateObjectSelectionListEntry
-
-
Method Details
-
render
public void render(MatrixStack matrices, int index, int y, int x, int entryWidth, int entryHeight, int mouseX, int mouseY, boolean hovered, float tickDelta)Renders an entry in a list.- Specified by:
renderin classEntryListWidget.Entry<RealmsSelectWorldTemplateScreen.WorldTemplateObjectSelectionListEntry>- Parameters:
matrices- the matrix stack used for renderingindex- the index of the entryy- the Y coordinate of the entryx- the X coordinate of the entryentryWidth- the width of the entryentryHeight- the height of the entrymouseX- the X coordinate of the mousemouseY- the Y coordinate of the mousehovered- whether the mouse is hovering over the entry
-
renderWorldTemplateItem
private void renderWorldTemplateItem(MatrixStack matrixStack, WorldTemplate worldTemplate, int int2, int int3, int int4, int int5) -
drawImage
private void drawImage(MatrixStack matrixStack, int y, int xm, int ym, int int2, WorldTemplate worldTemplate) -
drawIcons
private void drawIcons(MatrixStack matrixStack, int int2, int int3, int int4, int int5, String string, String string2, String string3)
-