Class RealmsBackupScreen.BackupObjectSelectionListEntry
java.lang.Object
net.minecraft.client.gui.widget.EntryListWidget.Entry<E>
net.minecraft.client.gui.widget.AlwaysSelectedEntryListWidget.Entry<RealmsBackupScreen.BackupObjectSelectionListEntry>
net.minecraft.client.realms.gui.screen.RealmsBackupScreen.BackupObjectSelectionListEntry
- All Implemented Interfaces:
Element
- Enclosing class:
- RealmsBackupScreen
@Environment(CLIENT) class RealmsBackupScreen.BackupObjectSelectionListEntry extends AlwaysSelectedEntryListWidget.Entry<RealmsBackupScreen.BackupObjectSelectionListEntry>
-
Field Summary
-
Constructor Summary
Constructors Constructor Description BackupObjectSelectionListEntry(Backup backup) -
Method Summary
Modifier and Type Method Description private voiddrawInfo(MatrixStack matrixStack, int int2, int int3, int int4, int int5)private voiddrawRestore(MatrixStack matrixStack, int int2, int int3, int int4, int int5)private StringgetMediumDatePresentation(Date lastModifiedDate)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 voidrenderBackupItem(MatrixStack matrixStack, Backup backup, 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
-
mBackup
-
-
Constructor Details
-
BackupObjectSelectionListEntry
-
-
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<RealmsBackupScreen.BackupObjectSelectionListEntry>- 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
-
renderBackupItem
private void renderBackupItem(MatrixStack matrixStack, Backup backup, int int2, int int3, int int4, int int5) -
getMediumDatePresentation
-
drawRestore
-
drawInfo
-