Package dev.miyomiyo.agentbridge.client
Record Class ShortcutKey
java.lang.Object
java.lang.Record
dev.miyomiyo.agentbridge.client.ShortcutKey
public record ShortcutKey(java.lang.String id, java.lang.String translationKey, int defaultKey)
extends java.lang.Record
One remappable Minecraft key, shared by its modifier combinations. Equal IDs must carry identical
metadata. This is a passive declaration; it does not construct or register a native KeyMapping.
The key uses a GLFW key code, or -1 for unbound. Translation keys belong to the supplying MOD.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ShortcutKeyG for conversation/setup; Shift operates the HUD, then opens settings from mouse mode.static final ShortcutKeyDeliberately unbound: permanent HUD layout is distinct from ordinary pointer use. -
Constructor Summary
ConstructorsConstructorDescriptionShortcutKey(java.lang.String id, java.lang.String translationKey, int defaultKey) Creates an instance of aShortcutKeyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thedefaultKeyrecord component.final booleanequals(java.lang.Object o) Indicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.java.lang.Stringid()Returns the value of theidrecord component.final java.lang.StringtoString()Returns a string representation of this record class.java.lang.StringReturns the value of thetranslationKeyrecord component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Field Details
-
ASSISTANT
G for conversation/setup; Shift operates the HUD, then opens settings from mouse mode. -
LAYOUT
Deliberately unbound: permanent HUD layout is distinct from ordinary pointer use.
-
-
Constructor Details
-
ShortcutKey
public ShortcutKey(java.lang.String id, java.lang.String translationKey, int defaultKey) Creates an instance of aShortcutKeyrecord class.- Parameters:
id- the value for theidrecord componenttranslationKey- the value for thetranslationKeyrecord componentdefaultKey- the value for thedefaultKeyrecord component
-
-
Method Details
-
toString
public final java.lang.String toString()Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.- Specified by:
toStringin classjava.lang.Record- Returns:
- a string representation of this object
-
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components.- Specified by:
hashCodein classjava.lang.Record- Returns:
- a hash code value for this object
-
equals
public final boolean equals(java.lang.Object o) 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 '=='.- Specified by:
equalsin classjava.lang.Record- Parameters:
o- the object with which to compare- Returns:
trueif this object is the same as theoargument;falseotherwise.
-
id
public java.lang.String id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
translationKey
public java.lang.String translationKey()Returns the value of thetranslationKeyrecord component.- Returns:
- the value of the
translationKeyrecord component
-
defaultKey
public int defaultKey()Returns the value of thedefaultKeyrecord component.- Returns:
- the value of the
defaultKeyrecord component
-