Package net.minecraft.server
Record Class SaveLoading.DataPacks
java.lang.Object
java.lang.Record
net.minecraft.server.SaveLoading.DataPacks
- Record Components:
manager-initialDataConfig-safeMode-initMode-
- Enclosing class:
SaveLoading
public static record SaveLoading.DataPacks(ResourcePackManager manager, DataConfiguration initialDataConfig, boolean safeMode, boolean initMode)
extends Record
- Mappings:
Namespace Name named net/minecraft/server/SaveLoading$DataPacksintermediary net/minecraft/class_7237$class_7238official alo$dnamed managerintermediary comp_635official anamed initialDataConfigintermediary comp_636official bnamed safeModeintermediary comp_637official cnamed initModeintermediary comp_993official d
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final DataConfigurationThe field for theinitialDataConfigrecord component.private final booleanThe field for theinitModerecord component.private final ResourcePackManagerThe field for themanagerrecord component.private final booleanThe field for thesafeModerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionDataPacks(ResourcePackManager resourcePackManager, DataConfiguration dataConfiguration, boolean bool, boolean bool2) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theinitialDataConfigrecord component.booleaninitMode()Returns the value of theinitModerecord component.com.mojang.datafixers.util.Pair<DataConfiguration, LifecycledResourceManager> load()manager()Returns the value of themanagerrecord component.booleansafeMode()Returns the value of thesafeModerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
manager
The field for themanagerrecord component. -
initialDataConfig
The field for theinitialDataConfigrecord component. -
safeMode
private final boolean safeModeThe field for thesafeModerecord component. -
initMode
private final boolean initModeThe field for theinitModerecord component.
-
-
Constructor Details
-
DataPacks
public DataPacks(ResourcePackManager resourcePackManager, DataConfiguration dataConfiguration, boolean bool, boolean bool2)
-
-
Method Details
-
load
- Mappings:
Namespace Name Mixin selector named loadLnet/minecraft/server/SaveLoading$DataPacks;load()Lcom/mojang/datafixers/util/Pair;intermediary method_42099Lnet/minecraft/class_7237$class_7238;method_42099()Lcom/mojang/datafixers/util/Pair;official aLalo$d;a()Lcom/mojang/datafixers/util/Pair;
-
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 '=='. -
manager
Returns the value of themanagerrecord component.- Returns:
- the value of the
managerrecord component
-
initialDataConfig
Returns the value of theinitialDataConfigrecord component.- Returns:
- the value of the
initialDataConfigrecord component
-
safeMode
public boolean safeMode()Returns the value of thesafeModerecord component.- Returns:
- the value of the
safeModerecord component
-
initMode
public boolean initMode()Returns the value of theinitModerecord component.- Returns:
- the value of the
initModerecord component
-