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 Details

    • modId

      private final String modId
      The field for the modId record component.
    • parent

      private final net.minecraft.client.gui.screens.Screen parent
      The field for the parent record component.
    • modConfig

      private final net.neoforged.fml.config.ModConfig modConfig
      The field for the modConfig record component.
    • modSpec

      private final ModConfigSpec modSpec
      The field for the modSpec record component.
    • entries

      private final Set<? extends com.electronwill.nightconfig.core.UnmodifiableConfig.Entry> entries
      The field for the entries record component.
    • valueSpecs

      private final Map<String,Object> valueSpecs
      The field for the valueSpecs record component.
    • keylist

      private final List<String> keylist
      The field for the keylist record component.
    • filter

      The field for the filter 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 a Context record class.
      Parameters:
      modId - the value for the modId record component
      parent - the value for the parent record component
      modConfig - the value for the modConfig record component
      modSpec - the value for the modSpec record component
      entries - the value for the entries record component
      valueSpecs - the value for the valueSpecs record component
      keylist - the value for the keylist record component
      filter - the value for the filter 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

      private ArrayList<String> makeKeyList(String key)
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • modId

      public String modId()
      Returns the value of the modId record component.
      Returns:
      the value of the modId record component
    • parent

      public net.minecraft.client.gui.screens.Screen parent()
      Returns the value of the parent record component.
      Returns:
      the value of the parent record component
    • modConfig

      public net.neoforged.fml.config.ModConfig modConfig()
      Returns the value of the modConfig record component.
      Returns:
      the value of the modConfig record component
    • modSpec

      public ModConfigSpec modSpec()
      Returns the value of the modSpec record component.
      Returns:
      the value of the modSpec record component
    • entries

      public Set<? extends com.electronwill.nightconfig.core.UnmodifiableConfig.Entry> entries()
      Returns the value of the entries record component.
      Returns:
      the value of the entries record component
    • valueSpecs

      public Map<String,Object> valueSpecs()
      Returns the value of the valueSpecs record component.
      Returns:
      the value of the valueSpecs record component
    • keylist

      public List<String> keylist()
      Returns the value of the keylist record component.
      Returns:
      the value of the keylist record component
    • filter

      Returns the value of the filter record component.
      Returns:
      the value of the filter record component