Record Class GameTarget

java.lang.Object
java.lang.Record
net.darkhax.mmc.config.GameTarget

public record GameTarget(int javaVersion, String gameVersion, String minGameVersion, String neoform, String neoforge, String minNeoforge, String fabric, String minFabric, String fabricLoader, String minFabricLoader, Set<String> compatibleWith) extends Record
  • Field Details

    • BUILTIN

      public static final GameTarget BUILTIN
  • Constructor Details

    • GameTarget

      public GameTarget(int javaVersion, String gameVersion, String minGameVersion, String neoform, String neoforge, String minNeoforge, String fabric, String minFabric, String fabricLoader, String minFabricLoader, Set<String> compatibleWith)
      Creates an instance of a GameTarget record class.
      Parameters:
      javaVersion - the value for the javaVersion record component
      gameVersion - the value for the gameVersion record component
      minGameVersion - the value for the minGameVersion record component
      neoform - the value for the neoform record component
      neoforge - the value for the neoforge record component
      minNeoforge - the value for the minNeoforge record component
      fabric - the value for the fabric record component
      minFabric - the value for the minFabric record component
      fabricLoader - the value for the fabricLoader record component
      minFabricLoader - the value for the minFabricLoader record component
      compatibleWith - the value for the compatibleWith record component
  • Method Details

    • adjustedGameVersion

      public String adjustedGameVersion()
    • strictGameTarget

      public GameTarget strictGameTarget()
    • 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      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.
    • javaVersion

      public int javaVersion()
      Returns the value of the javaVersion record component.
      Returns:
      the value of the javaVersion record component
    • gameVersion

      public String gameVersion()
      Returns the value of the gameVersion record component.
      Returns:
      the value of the gameVersion record component
    • minGameVersion

      public String minGameVersion()
      Returns the value of the minGameVersion record component.
      Returns:
      the value of the minGameVersion record component
    • neoform

      public String neoform()
      Returns the value of the neoform record component.
      Returns:
      the value of the neoform record component
    • neoforge

      public String neoforge()
      Returns the value of the neoforge record component.
      Returns:
      the value of the neoforge record component
    • minNeoforge

      public String minNeoforge()
      Returns the value of the minNeoforge record component.
      Returns:
      the value of the minNeoforge record component
    • fabric

      public String fabric()
      Returns the value of the fabric record component.
      Returns:
      the value of the fabric record component
    • minFabric

      public String minFabric()
      Returns the value of the minFabric record component.
      Returns:
      the value of the minFabric record component
    • fabricLoader

      public String fabricLoader()
      Returns the value of the fabricLoader record component.
      Returns:
      the value of the fabricLoader record component
    • minFabricLoader

      public String minFabricLoader()
      Returns the value of the minFabricLoader record component.
      Returns:
      the value of the minFabricLoader record component
    • compatibleWith

      public Set<String> compatibleWith()
      Returns the value of the compatibleWith record component.
      Returns:
      the value of the compatibleWith record component