Record Class GameTarget
java.lang.Object
java.lang.Record
net.darkhax.mmc.config.GameTarget
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGameTarget(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 aGameTargetrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecompatibleWithrecord component.final booleanIndicates whether some other object is "equal to" this one.fabric()Returns the value of thefabricrecord component.Returns the value of thefabricLoaderrecord component.Returns the value of thegameVersionrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of thejavaVersionrecord component.Returns the value of theminFabricrecord component.Returns the value of theminFabricLoaderrecord component.Returns the value of theminGameVersionrecord component.Returns the value of theminNeoforgerecord component.neoforge()Returns the value of theneoforgerecord component.neoform()Returns the value of theneoformrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
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 aGameTargetrecord class.- Parameters:
javaVersion- the value for thejavaVersionrecord componentgameVersion- the value for thegameVersionrecord componentminGameVersion- the value for theminGameVersionrecord componentneoform- the value for theneoformrecord componentneoforge- the value for theneoforgerecord componentminNeoforge- the value for theminNeoforgerecord componentfabric- the value for thefabricrecord componentminFabric- the value for theminFabricrecord componentfabricLoader- the value for thefabricLoaderrecord componentminFabricLoader- the value for theminFabricLoaderrecord componentcompatibleWith- the value for thecompatibleWithrecord component
-
-
Method Details
-
adjustedGameVersion
-
strictGameTarget
-
toString
-
hashCode
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
javaVersion
public int javaVersion()Returns the value of thejavaVersionrecord component.- Returns:
- the value of the
javaVersionrecord component
-
gameVersion
Returns the value of thegameVersionrecord component.- Returns:
- the value of the
gameVersionrecord component
-
minGameVersion
Returns the value of theminGameVersionrecord component.- Returns:
- the value of the
minGameVersionrecord component
-
neoform
Returns the value of theneoformrecord component.- Returns:
- the value of the
neoformrecord component
-
neoforge
Returns the value of theneoforgerecord component.- Returns:
- the value of the
neoforgerecord component
-
minNeoforge
Returns the value of theminNeoforgerecord component.- Returns:
- the value of the
minNeoforgerecord component
-
fabric
Returns the value of thefabricrecord component.- Returns:
- the value of the
fabricrecord component
-
minFabric
Returns the value of theminFabricrecord component.- Returns:
- the value of the
minFabricrecord component
-
fabricLoader
Returns the value of thefabricLoaderrecord component.- Returns:
- the value of the
fabricLoaderrecord component
-
minFabricLoader
Returns the value of theminFabricLoaderrecord component.- Returns:
- the value of the
minFabricLoaderrecord component
-
compatibleWith
-