Package net.minecraft.client
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.Categoryprivate final ResourceLocationThe 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
ConstructorsConstructorDescriptionCreates an instance of aCategoryrecord class. -
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(ResourceLocation pLocation) Deprecated.Neo: use invalid input: '{@link net.neoforged.neoforge.client.event.RegisterKeyMappingsEvent#' registerCategory(Category)} insteadfinal 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
-
-
Constructor Details
-
Category
Creates an instance of aCategoryrecord class.- Parameters:
id- the value for theidrecord component
-
-
Method Details
-
register
-
register
Deprecated.Neo: use invalid input: '{@link net.neoforged.neoforge.client.event.RegisterKeyMappingsEvent#' registerCategory(Category)} instead -
label
-
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. -
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. -
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
-