Record Class ConfigurationScreen.ConfigurationSectionScreen.Context
java.lang.Object
java.lang.Record
net.neoforged.neoforge.client.gui.ConfigurationScreen.ConfigurationSectionScreen.Context
- Enclosing class:
 ConfigurationScreen.ConfigurationSectionScreen
public static record ConfigurationScreen.ConfigurationSectionScreen.Context(String modId, Screen parent, ModConfig modConfig, ModConfigSpec modSpec, Set<? extends com.electronwill.nightconfig.core.UnmodifiableConfig.Entry> entries, Map<String,Object> valueSpecs, List<String> keylist, ConfigurationScreen.ConfigurationSectionScreen.Filter filter)
extends Record 
- 
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Set<? extends com.electronwill.nightconfig.core.UnmodifiableConfig.Entry> The field for theentriesrecord component.private final ConfigurationScreen.ConfigurationSectionScreen.FilterThe field for thefilterrecord component.The field for thekeylistrecord component.private final ModConfigThe field for themodConfigrecord component.private final StringThe field for themodIdrecord component.private final ModConfigSpecThe field for themodSpecrecord component.private final ScreenThe field for theparentrecord component.The field for thevalueSpecsrecord component. - 
Constructor Summary
ConstructorsConstructorDescriptionContext(String modId, Screen parent, ModConfig modConfig, ModConfigSpec modSpec, Set<? extends com.electronwill.nightconfig.core.UnmodifiableConfig.Entry> entries, Map<String, Object> valueSpecs, List<String> keylist, ConfigurationScreen.ConfigurationSectionScreen.Filter filter) Creates an instance of aContextrecord class. - 
Method Summary
Modifier and TypeMethodDescriptionSet<? extends com.electronwill.nightconfig.core.UnmodifiableConfig.Entry> entries()Returns the value of theentriesrecord component.final booleanIndicates whether some other object is "equal to" this one.filter()Returns the value of thefilterrecord component.final inthashCode()Returns a hash code value for this object.keylist()Returns the value of thekeylistrecord component.list(ConfigurationScreen.ConfigurationSectionScreen.Context parentContext, Screen parent) makeKeyList(String key) Returns the value of themodConfigrecord component.modId()Returns the value of themodIdrecord component.modSpec()Returns the value of themodSpecrecord component.parent()Returns the value of theparentrecord component.section(ConfigurationScreen.ConfigurationSectionScreen.Context parentContext, Screen parent, Set<? extends com.electronwill.nightconfig.core.UnmodifiableConfig.Entry> entries, Map<String, Object> valueSpecs, String key) top(String modId, Screen parent, ModConfig modConfig, ConfigurationScreen.ConfigurationSectionScreen.Filter filter) final StringtoString()Returns a string representation of this record class.Returns the value of thevalueSpecsrecord component. 
- 
Field Details
- 
modId
The field for themodIdrecord component. - 
parent
The field for theparentrecord component. - 
modConfig
The field for themodConfigrecord component. - 
modSpec
The field for themodSpecrecord component. - 
entries
The field for theentriesrecord component. - 
valueSpecs
The field for thevalueSpecsrecord component. - 
keylist
The field for thekeylistrecord component. - 
filter
The field for thefilterrecord component. 
 - 
 - 
Constructor Details
- 
Context
@Internal public Context(String modId, Screen parent, ModConfig modConfig, ModConfigSpec modSpec, Set<? extends com.electronwill.nightconfig.core.UnmodifiableConfig.Entry> entries, Map<String, Object> valueSpecs, List<String> keylist, ConfigurationScreen.ConfigurationSectionScreen.Filter filter) Creates an instance of aContextrecord class.- Parameters:
 modId- the value for themodIdrecord componentparent- the value for theparentrecord componentmodConfig- the value for themodConfigrecord componentmodSpec- the value for themodSpecrecord componententries- the value for theentriesrecord componentvalueSpecs- the value for thevalueSpecsrecord componentkeylist- the value for thekeylistrecord componentfilter- the value for thefilterrecord component
 
 - 
 - 
Method Details
- 
top
public static ConfigurationScreen.ConfigurationSectionScreen.Context top(String modId, Screen parent, ModConfig modConfig, ConfigurationScreen.ConfigurationSectionScreen.Filter filter)  - 
section
public static ConfigurationScreen.ConfigurationSectionScreen.Context section(ConfigurationScreen.ConfigurationSectionScreen.Context parentContext, Screen parent, Set<? extends com.electronwill.nightconfig.core.UnmodifiableConfig.Entry> entries, Map<String, Object> valueSpecs, String key)  - 
list
public static ConfigurationScreen.ConfigurationSectionScreen.Context list(ConfigurationScreen.ConfigurationSectionScreen.Context parentContext, Screen parent)  - 
makeKeyList
 - 
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). - 
modId
Returns the value of themodIdrecord component.- Returns:
 - the value of the 
modIdrecord component 
 - 
parent
Returns the value of theparentrecord component.- Returns:
 - the value of the 
parentrecord component 
 - 
modConfig
Returns the value of themodConfigrecord component.- Returns:
 - the value of the 
modConfigrecord component 
 - 
modSpec
Returns the value of themodSpecrecord component.- Returns:
 - the value of the 
modSpecrecord component 
 - 
entries
Returns the value of theentriesrecord component.- Returns:
 - the value of the 
entriesrecord component 
 - 
valueSpecs
Returns the value of thevalueSpecsrecord component.- Returns:
 - the value of the 
valueSpecsrecord component 
 - 
keylist
Returns the value of thekeylistrecord component.- Returns:
 - the value of the 
keylistrecord component 
 - 
filter
Returns the value of thefilterrecord component.- Returns:
 - the value of the 
filterrecord component 
 
 -