Record Class KeyMapping.Category
java.lang.Object
java.lang.Record
net.minecraft.client.KeyMapping.Category
- Enclosing class:
KeyMapping
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final KeyMapping.Categorystatic final KeyMapping.Categorystatic final KeyMapping.Categoryprivate final IdentifierThe field for theidrecord component.static final KeyMapping.Categorystatic final KeyMapping.Categorystatic final KeyMapping.Categorystatic final KeyMapping.Category(package private) static final List<KeyMapping.Category> static final KeyMapping.Category -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.label()private static KeyMapping.Categorystatic KeyMapping.Categoryregister(Identifier id) Deprecated.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
id
The field for theidrecord component. -
SORT_ORDER
-
MOVEMENT
-
MISC
-
MULTIPLAYER
-
GAMEPLAY
-
INVENTORY
-
CREATIVE
-
SPECTATOR
-
DEBUG
-
-
Constructor Details
-
Category
Creates an instance of aCategoryrecord class.- Parameters:
id- the value for theidrecord component
-
-
Method Details
-
register
-
register
Deprecated.Neo: useRegisterKeyMappingsEvent.registerCategory(Category)instead -
label
-
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
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
RegisterKeyMappingsEvent.registerCategory(Category)instead