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$bintermediary net/minecraft/class_6904$class_6906named net/minecraft/server/SaveLoader$FunctionLoaderConfigofficial aintermediary comp_360named dataPackManagerofficial bintermediary comp_361named commandEnvironmentofficial cintermediary comp_362named functionPermissionLevelofficial dintermediary comp_363named safeMode
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CommandManager.RegistrationEnvironmentThe field for thecommandEnvironmentrecord component.private final ResourcePackManagerThe field for thedataPackManagerrecord component.private final intThe field for thefunctionPermissionLevelrecord component.private final booleanThe field for thesafeModerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionFunctionLoaderConfig(ResourcePackManager resourcePackManager, CommandManager.RegistrationEnvironment registrationEnvironment, int int2, boolean bool) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecommandEnvironmentrecord component.Returns the value of thedataPackManagerrecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the value of thefunctionPermissionLevelrecord component.final inthashCode()Returns a hash code value for this object.booleansafeMode()Returns the value of thesafeModerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
dataPackManager
The field for thedataPackManagerrecord component. -
commandEnvironment
The field for thecommandEnvironmentrecord component. -
functionPermissionLevel
private final int functionPermissionLevelThe field for thefunctionPermissionLevelrecord component. -
safeMode
private final boolean safeModeThe field for thesafeModerecord 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 thedataPackManagerrecord component.- Returns:
- the value of the
dataPackManagerrecord component
-
commandEnvironment
Returns the value of thecommandEnvironmentrecord component.- Returns:
- the value of the
commandEnvironmentrecord component
-
functionPermissionLevel
public int functionPermissionLevel()Returns the value of thefunctionPermissionLevelrecord component.- Returns:
- the value of the
functionPermissionLevelrecord component
-
safeMode
public boolean safeMode()Returns the value of thesafeModerecord component.- Returns:
- the value of the
safeModerecord component
-