Package net.minecraft
Record Class class_6904.class_6906
java.lang.Object
java.lang.Record
net.minecraft.class_6904.class_6906
- Record Components:
packRepository-commandSelection-functionCompilationLevel-safeMode-
- Enclosing class:
class_6904
public static record class_6904.class_6906(ResourcePackManager packRepository, CommandManager.RegistrationEnvironment commandSelection, int functionCompilationLevel, boolean safeMode)
extends Record
- Mappings:
Namespace Name official zj$bintermediary net/minecraft/class_6904$class_6906named net/minecraft/class_6904$class_6906official aintermediary comp_360named packRepositoryofficial bintermediary comp_361named commandSelectionofficial cintermediary comp_362named functionCompilationLevelofficial dintermediary comp_363named safeMode
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CommandManager.RegistrationEnvironmentThe field for thecommandSelectionrecord component.private final intThe field for thefunctionCompilationLevelrecord component.private final ResourcePackManagerThe field for thepackRepositoryrecord component.private final booleanThe field for thesafeModerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionclass_6906(ResourcePackManager resourcePackManager, CommandManager.RegistrationEnvironment registrationEnvironment, int int2, boolean bool) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecommandSelectionrecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the value of thefunctionCompilationLevelrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thepackRepositoryrecord component.booleansafeMode()Returns the value of thesafeModerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
packRepository
The field for thepackRepositoryrecord component. -
commandSelection
The field for thecommandSelectionrecord component. -
functionCompilationLevel
private final int functionCompilationLevelThe field for thefunctionCompilationLevelrecord component. -
safeMode
private final boolean safeModeThe field for thesafeModerecord component.
-
-
Constructor Details
-
class_6906
public class_6906(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 '=='. -
packRepository
Returns the value of thepackRepositoryrecord component.- Returns:
- the value of the
packRepositoryrecord component
-
commandSelection
Returns the value of thecommandSelectionrecord component.- Returns:
- the value of the
commandSelectionrecord component
-
functionCompilationLevel
public int functionCompilationLevel()Returns the value of thefunctionCompilationLevelrecord component.- Returns:
- the value of the
functionCompilationLevelrecord component
-
safeMode
public boolean safeMode()Returns the value of thesafeModerecord component.- Returns:
- the value of the
safeModerecord component
-