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, net.minecraft.client.gui.screens.Screen parent, net.neoforged.fml.config.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 theentries
record component.private final ConfigurationScreen.ConfigurationSectionScreen.Filter
The field for thefilter
record component.The field for thekeylist
record component.private final net.neoforged.fml.config.ModConfig
The field for themodConfig
record component.private final String
The field for themodId
record component.private final ModConfigSpec
The field for themodSpec
record component.private final net.minecraft.client.gui.screens.Screen
The field for theparent
record component.The field for thevalueSpecs
record component. -
Constructor Summary
ConstructorsConstructorDescriptionContext
(String modId, net.minecraft.client.gui.screens.Screen parent, net.neoforged.fml.config.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 aContext
record class. -
Method Summary
Modifier and TypeMethodDescriptionSet
<? extends com.electronwill.nightconfig.core.UnmodifiableConfig.Entry> entries()
Returns the value of theentries
record component.final boolean
Indicates whether some other object is "equal to" this one.filter()
Returns the value of thefilter
record component.final int
hashCode()
Returns a hash code value for this object.keylist()
Returns the value of thekeylist
record component.list
(ConfigurationScreen.ConfigurationSectionScreen.Context parentContext, net.minecraft.client.gui.screens.Screen parent) makeKeyList
(String key) net.neoforged.fml.config.ModConfig
Returns the value of themodConfig
record component.modId()
Returns the value of themodId
record component.modSpec()
Returns the value of themodSpec
record component.net.minecraft.client.gui.screens.Screen
parent()
Returns the value of theparent
record component.section
(ConfigurationScreen.ConfigurationSectionScreen.Context parentContext, net.minecraft.client.gui.screens.Screen parent, Set<? extends com.electronwill.nightconfig.core.UnmodifiableConfig.Entry> entries, Map<String, Object> valueSpecs, String key) top
(String modId, net.minecraft.client.gui.screens.Screen parent, net.neoforged.fml.config.ModConfig modConfig, ConfigurationScreen.ConfigurationSectionScreen.Filter filter) final String
toString()
Returns a string representation of this record class.Returns the value of thevalueSpecs
record component.
-
Field Details
-
modId
The field for themodId
record component. -
parent
private final net.minecraft.client.gui.screens.Screen parentThe field for theparent
record component. -
modConfig
private final net.neoforged.fml.config.ModConfig modConfigThe field for themodConfig
record component. -
modSpec
The field for themodSpec
record component. -
entries
The field for theentries
record component. -
valueSpecs
The field for thevalueSpecs
record component. -
keylist
The field for thekeylist
record component. -
filter
The field for thefilter
record component.
-
-
Constructor Details
-
Context
@Internal public Context(String modId, net.minecraft.client.gui.screens.Screen parent, net.neoforged.fml.config.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 aContext
record class.- Parameters:
modId
- the value for themodId
record componentparent
- the value for theparent
record componentmodConfig
- the value for themodConfig
record componentmodSpec
- the value for themodSpec
record componententries
- the value for theentries
record componentvalueSpecs
- the value for thevalueSpecs
record componentkeylist
- the value for thekeylist
record componentfilter
- the value for thefilter
record component
-
-
Method Details
-
top
public static ConfigurationScreen.ConfigurationSectionScreen.Context top(String modId, net.minecraft.client.gui.screens.Screen parent, net.neoforged.fml.config.ModConfig modConfig, ConfigurationScreen.ConfigurationSectionScreen.Filter filter) -
section
public static ConfigurationScreen.ConfigurationSectionScreen.Context section(ConfigurationScreen.ConfigurationSectionScreen.Context parentContext, net.minecraft.client.gui.screens.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, net.minecraft.client.gui.screens.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 themodId
record component.- Returns:
- the value of the
modId
record component
-
parent
public net.minecraft.client.gui.screens.Screen parent()Returns the value of theparent
record component.- Returns:
- the value of the
parent
record component
-
modConfig
public net.neoforged.fml.config.ModConfig modConfig()Returns the value of themodConfig
record component.- Returns:
- the value of the
modConfig
record component
-
modSpec
Returns the value of themodSpec
record component.- Returns:
- the value of the
modSpec
record component
-
entries
Returns the value of theentries
record component.- Returns:
- the value of the
entries
record component
-
valueSpecs
Returns the value of thevalueSpecs
record component.- Returns:
- the value of the
valueSpecs
record component
-
keylist
Returns the value of thekeylist
record component.- Returns:
- the value of the
keylist
record component
-
filter
Returns the value of thefilter
record component.- Returns:
- the value of the
filter
record component
-