Package net.minecraft.server
Record Class WorldStem.InitConfig
java.lang.Object
java.lang.Record
net.minecraft.server.WorldStem.InitConfig
- Enclosing class:
- WorldStem
public static record WorldStem.InitConfig(PackRepository packRepository, Commands.CommandSelection commandSelection, int functionCompilationLevel, boolean safeMode)
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 PackRepository
The field for thepackRepository
record component.private final boolean
The field for thesafeMode
record component. -
Constructor Summary
ConstructorDescriptionInitConfig
(PackRepository packRepository, Commands.CommandSelection commandSelection, int functionCompilationLevel, boolean safeMode) 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 thepackRepository
record component.boolean
safeMode()
Returns the value of thesafeMode
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
packRepository
The field for thepackRepository
record component. -
commandSelection
The field for thecommandSelection
record component. -
functionCompilationLevel
private final int functionCompilationLevelThe field for thefunctionCompilationLevel
record component. -
safeMode
private final boolean safeModeThe field for thesafeMode
record component.
-
-
Constructor Details
-
InitConfig
public InitConfig(PackRepository packRepository, Commands.CommandSelection commandSelection, int functionCompilationLevel, boolean safeMode) Creates an instance of aInitConfig
record class.- Parameters:
packRepository
- the value for thepackRepository
record componentcommandSelection
- the value for thecommandSelection
record componentfunctionCompilationLevel
- the value for thefunctionCompilationLevel
record componentsafeMode
- the value for thesafeMode
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 '=='. -
packRepository
Returns the value of thepackRepository
record component.- Returns:
- the value of the
packRepository
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
-
safeMode
public boolean safeMode()Returns the value of thesafeMode
record component.- Returns:
- the value of the
safeMode
record component
-