Record Class DefaultCategory
java.lang.Object
java.lang.Record
johnsmith.configoverhauled.impl.core.state.DefaultCategory
- All Implemented Interfaces:
Category
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultCategory(String id, ConfigManager manager) Creates an instance of aDefaultCategoryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionAllocates or retrieves a subsidiary structural group within this category.final 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.booleanisEmpty()Evaluates the active state of the category's structural hierarchy.manager()Returns the value of themanagerrecord component.voidSevers the structural bond between this category and the specified group.final StringtoString()Returns a string representation of this record class.Retrieves the base localization key utilized for client-side GUI translation.
-
Constructor Details
-
DefaultCategory
Creates an instance of aDefaultCategoryrecord class.- Parameters:
id- the value for theidrecord componentmanager- the value for themanagerrecord component
-
-
Method Details
-
translationKey
Description copied from interface:CategoryRetrieves the base localization key utilized for client-side GUI translation.- Specified by:
translationKeyin interfaceCategory- Returns:
- The formatted translation key string.
-
define
-
remove
-
isEmpty
-
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
-
manager
Returns the value of themanagerrecord component.
-