Record Class CommonLaunchHandler.LaunchType
java.lang.Object
java.lang.Record
net.minecraftforge.fml.loading.targets.CommonLaunchHandler.LaunchType
- Enclosing class:
- CommonLaunchHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final boolean
The field for thedata
record component.private final net.minecraftforge.api.distmarker.Dist
The field for thedist
record component.private final String
The field for themain
record component.private final String
The field for themodule
record component.private final String
The field for thename
record component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
LaunchType
(String name, String module, String main, net.minecraftforge.api.distmarker.Dist dist, boolean data) Creates an instance of aLaunchType
record class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
data()
Returns the value of thedata
record component.net.minecraftforge.api.distmarker.Dist
dist()
Returns the value of thedist
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.main()
Returns the value of themain
record component.module()
Returns the value of themodule
record component.name()
Returns the value of thename
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
name
The field for thename
record component. -
module
The field for themodule
record component. -
main
The field for themain
record component. -
dist
private final net.minecraftforge.api.distmarker.Dist distThe field for thedist
record component. -
data
private final boolean dataThe field for thedata
record component.
-
-
Constructor Details
-
LaunchType
protected LaunchType(String name, String module, String main, net.minecraftforge.api.distmarker.Dist dist, boolean data) Creates an instance of aLaunchType
record class.- Parameters:
name
- the value for thename
record componentmodule
- the value for themodule
record componentmain
- the value for themain
record componentdist
- the value for thedist
record componentdata
- the value for thedata
record component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
module
Returns the value of themodule
record component.- Returns:
- the value of the
module
record component
-
main
Returns the value of themain
record component.- Returns:
- the value of the
main
record component
-
dist
public net.minecraftforge.api.distmarker.Dist dist()Returns the value of thedist
record component.- Returns:
- the value of the
dist
record component
-
data
public boolean data()Returns the value of thedata
record component.- Returns:
- the value of the
data
record component
-