Record Class HotKeyManager.RegisteredHotKey
java.lang.Object
java.lang.Record
de.luckymcdev.foundryengine.client.imgui.hotkey.HotKeyManager.RegisteredHotKey
- Enclosing class:
HotKeyManager
public static record HotKeyManager.RegisteredHotKey(net.minecraft.resources.Identifier id, ImHotKey.HotKey hotKey, Runnable action)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionRegisteredHotKey(net.minecraft.resources.Identifier id, ImHotKey.HotKey hotKey, Runnable action) Creates an instance of aRegisteredHotKeyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionaction()Returns the value of theactionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.hotKey()Returns the value of thehotKeyrecord component.net.minecraft.resources.Identifierid()Returns the value of theidrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RegisteredHotKey
public RegisteredHotKey(net.minecraft.resources.Identifier id, ImHotKey.HotKey hotKey, Runnable action) Creates an instance of aRegisteredHotKeyrecord class.- Parameters:
id- the value for theidrecord componenthotKey- the value for thehotKeyrecord componentaction- the value for theactionrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
id
public net.minecraft.resources.Identifier id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
hotKey
Returns the value of thehotKeyrecord component.- Returns:
- the value of the
hotKeyrecord component
-
action
Returns the value of theactionrecord component.- Returns:
- the value of the
actionrecord component
-