Package net.minecraft.server
Record Class SaveLoader.FunctionLoaderConfig
java.lang.Object
java.lang.Record
net.minecraft.server.SaveLoader.FunctionLoaderConfig
- Record Components:
dataPackManager
-commandEnvironment
-functionPermissionLevel
-safeMode
-
- Enclosing class:
SaveLoader
public static record SaveLoader.FunctionLoaderConfig(ResourcePackManager dataPackManager, CommandManager.RegistrationEnvironment commandEnvironment, int functionPermissionLevel, boolean safeMode)
extends Record
- Mappings:
Namespace Name official zk$b
intermediary net/minecraft/class_6904$class_6906
named net/minecraft/server/SaveLoader$FunctionLoaderConfig
official a
intermediary comp_360
named dataPackManager
official b
intermediary comp_361
named commandEnvironment
official c
intermediary comp_362
named functionPermissionLevel
official d
intermediary comp_363
named safeMode
-
Field Summary
Modifier and TypeFieldDescriptionprivate final CommandManager.RegistrationEnvironment
The field for thecommandEnvironment
record component.private final ResourcePackManager
The field for thedataPackManager
record component.private final int
The field for thefunctionPermissionLevel
record component.private final boolean
The field for thesafeMode
record component. -
Constructor Summary
ConstructorDescriptionFunctionLoaderConfig
(ResourcePackManager resourcePackManager, CommandManager.RegistrationEnvironment registrationEnvironment, int int2, boolean bool) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecommandEnvironment
record component.Returns the value of thedataPackManager
record component.final boolean
Indicates whether some other object is "equal to" this one.int
Returns the value of thefunctionPermissionLevel
record component.final int
hashCode()
Returns a hash code value for this object.boolean
safeMode()
Returns the value of thesafeMode
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
dataPackManager
The field for thedataPackManager
record component. -
commandEnvironment
The field for thecommandEnvironment
record component. -
functionPermissionLevel
private final int functionPermissionLevelThe field for thefunctionPermissionLevel
record component. -
safeMode
private final boolean safeModeThe field for thesafeMode
record component.
-
-
Constructor Details
-
FunctionLoaderConfig
public FunctionLoaderConfig(ResourcePackManager resourcePackManager, CommandManager.RegistrationEnvironment registrationEnvironment, int int2, boolean bool)
-
-
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 '=='. -
dataPackManager
Returns the value of thedataPackManager
record component.- Returns:
- the value of the
dataPackManager
record component
-
commandEnvironment
Returns the value of thecommandEnvironment
record component.- Returns:
- the value of the
commandEnvironment
record component
-
functionPermissionLevel
public int functionPermissionLevel()Returns the value of thefunctionPermissionLevel
record component.- Returns:
- the value of the
functionPermissionLevel
record component
-
safeMode
public boolean safeMode()Returns the value of thesafeMode
record component.- Returns:
- the value of the
safeMode
record component
-