Record Class VersionCapabilitiesInternal

java.lang.Object
java.lang.Record
net.neoforged.moddevgradle.internal.utils.VersionCapabilitiesInternal
Record Components:
minecraftVersion - The Minecraft version.
javaVersion - Which Java version Vanilla uses to compile and run.
splitDataRuns - Whether Vanilla has separate main classes for generating client and server data.
testFixtures - If the NeoForge version for this Minecraft version supports test fixtures.
All Implemented Interfaces:
Serializable, VersionCapabilities

public record VersionCapabilitiesInternal(String minecraftVersion, int javaVersion, boolean splitDataRuns, boolean testFixtures) extends Record implements VersionCapabilities, Serializable
Models the changing capabilities of the modding platform and Vanilla, which we tie to the Minecraft version.
See Also:
  • Constructor Details

    • VersionCapabilitiesInternal

      public VersionCapabilitiesInternal(String minecraftVersion, int javaVersion, boolean splitDataRuns, boolean testFixtures)
      Creates an instance of a VersionCapabilitiesInternal record class.
      Parameters:
      minecraftVersion - the value for the minecraftVersion record component
      javaVersion - the value for the javaVersion record component
      splitDataRuns - the value for the splitDataRuns record component
      testFixtures - the value for the testFixtures record component
  • Method Details