Package net.minecraft.server
Record Class WorldLoader.InitConfig
java.lang.Object
java.lang.Record
net.minecraft.server.WorldLoader.InitConfig
- Enclosing class:
WorldLoader
public static record WorldLoader.InitConfig(WorldLoader.PackConfig packConfig, Commands.CommandSelection commandSelection, int functionCompilationLevel)
extends Record
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Commands.CommandSelection
The field for thecommandSelection
record component.private final int
The field for thefunctionCompilationLevel
record component.private final WorldLoader.PackConfig
The field for thepackConfig
record component. -
Constructor Summary
ConstructorDescriptionInitConfig
(WorldLoader.PackConfig packConfig, Commands.CommandSelection commandSelection, int functionCompilationLevel) Creates an instance of aInitConfig
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecommandSelection
record component.final boolean
Indicates whether some other object is "equal to" this one.int
Returns the value of thefunctionCompilationLevel
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of thepackConfig
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
packConfig
The field for thepackConfig
record component. -
commandSelection
The field for thecommandSelection
record component. -
functionCompilationLevel
private final int functionCompilationLevelThe field for thefunctionCompilationLevel
record component.
-
-
Constructor Details
-
InitConfig
public InitConfig(WorldLoader.PackConfig packConfig, Commands.CommandSelection commandSelection, int functionCompilationLevel) Creates an instance of aInitConfig
record class.- Parameters:
packConfig
- the value for thepackConfig
record componentcommandSelection
- the value for thecommandSelection
record componentfunctionCompilationLevel
- the value for thefunctionCompilationLevel
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 '=='. -
packConfig
Returns the value of thepackConfig
record component.- Returns:
- the value of the
packConfig
record component
-
commandSelection
Returns the value of thecommandSelection
record component.- Returns:
- the value of the
commandSelection
record component
-
functionCompilationLevel
public int functionCompilationLevel()Returns the value of thefunctionCompilationLevel
record component.- Returns:
- the value of the
functionCompilationLevel
record component
-