Record Class KeyEntryRenderEvent
java.lang.Object
java.lang.Record
com.blamejared.controlling.api.event.KeyEntryRenderEvent
- All Implemented Interfaces:
IKeyEntryRenderEvent
public record KeyEntryRenderEvent(IKeyEntry entry, net.minecraft.client.gui.GuiGraphicsExtractor graphics, int x, int y, int rowLeft, int rowWidth, boolean hovered, float partialTicks)
extends Record
implements IKeyEntryRenderEvent
RenderKeyEntryEvent is called at the top of
IKeyEntry.extractContent(GuiGraphicsExtractor, int, int, boolean, float)
is called, allowing mods to render additional info.-
Constructor Summary
ConstructorsConstructorDescriptionKeyEntryRenderEvent(IKeyEntry entry, net.minecraft.client.gui.GuiGraphicsExtractor graphics, int x, int y, int rowLeft, int rowWidth, boolean hovered, float partialTicks) Creates an instance of aKeyEntryRenderEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptionentry()Returns the value of theentryrecord component.final booleanIndicates whether some other object is "equal to" this one.net.minecraft.client.gui.GuiGraphicsExtractorgraphics()Returns the value of thegraphicsrecord component.final inthashCode()Returns a hash code value for this object.booleanhovered()Returns the value of thehoveredrecord component.floatReturns the value of thepartialTicksrecord component.introwLeft()Returns the value of therowLeftrecord component.introwWidth()Returns the value of therowWidthrecord component.final StringtoString()Returns a string representation of this record class.intx()Returns the value of thexrecord component.inty()Returns the value of theyrecord component.
-
Constructor Details
-
KeyEntryRenderEvent
public KeyEntryRenderEvent(IKeyEntry entry, net.minecraft.client.gui.GuiGraphicsExtractor graphics, int x, int y, int rowLeft, int rowWidth, boolean hovered, float partialTicks) Creates an instance of aKeyEntryRenderEventrecord class.- Parameters:
entry- the value for theentryrecord componentgraphics- the value for thegraphicsrecord componentx- the value for thexrecord componenty- the value for theyrecord componentrowLeft- the value for therowLeftrecord componentrowWidth- the value for therowWidthrecord componenthovered- the value for thehoveredrecord componentpartialTicks- the value for thepartialTicksrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
entry
Returns the value of theentryrecord component.- Specified by:
entryin interfaceIKeyEntryRenderEvent- Returns:
- the value of the
entryrecord component
-
graphics
public net.minecraft.client.gui.GuiGraphicsExtractor graphics()Returns the value of thegraphicsrecord component.- Specified by:
graphicsin interfaceIKeyEntryRenderEvent- Returns:
- the value of the
graphicsrecord component
-
x
public int x()Returns the value of thexrecord component.- Specified by:
xin interfaceIKeyEntryRenderEvent- Returns:
- the value of the
xrecord component
-
y
public int y()Returns the value of theyrecord component.- Specified by:
yin interfaceIKeyEntryRenderEvent- Returns:
- the value of the
yrecord component
-
rowLeft
public int rowLeft()Returns the value of therowLeftrecord component.- Specified by:
rowLeftin interfaceIKeyEntryRenderEvent- Returns:
- the value of the
rowLeftrecord component
-
rowWidth
public int rowWidth()Returns the value of therowWidthrecord component.- Specified by:
rowWidthin interfaceIKeyEntryRenderEvent- Returns:
- the value of the
rowWidthrecord component
-
hovered
public boolean hovered()Returns the value of thehoveredrecord component.- Specified by:
hoveredin interfaceIKeyEntryRenderEvent- Returns:
- the value of the
hoveredrecord component
-
partialTicks
public float partialTicks()Returns the value of thepartialTicksrecord component.- Specified by:
partialTicksin interfaceIKeyEntryRenderEvent- Returns:
- the value of the
partialTicksrecord component
-