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$DataPacks- intermediary - net/minecraft/class_7237$class_7238- official - alt$d- named - manager- intermediary - comp_635- official - a- named - initialDataConfig- intermediary - comp_636- official - b- named - safeMode- intermediary - comp_637- official - c- named - initMode- intermediary - comp_993- official - d
- 
Field SummaryFieldsModifier 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 SummaryConstructorsConstructorDescriptionDataPacks(ResourcePackManager resourcePackManager, DataConfiguration dataConfiguration, boolean bool, boolean bool2) 
- 
Method SummaryModifier 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- 
managerThe field for themanagerrecord component.
- 
initialDataConfigThe field for theinitialDataConfigrecord component.
- 
safeModeprivate final boolean safeModeThe field for thesafeModerecord component.
- 
initModeprivate final boolean initModeThe field for theinitModerecord component.
 
- 
- 
Constructor Details- 
DataPackspublic DataPacks(ResourcePackManager resourcePackManager, DataConfiguration dataConfiguration, boolean bool, boolean bool2) 
 
- 
- 
Method Details- 
load- Mappings:
- Namespace - Name - Mixin selector - named - load- Lnet/minecraft/server/SaveLoading$DataPacks;load()Lcom/mojang/datafixers/util/Pair;- intermediary - method_42099- Lnet/minecraft/class_7237$class_7238;method_42099()Lcom/mojang/datafixers/util/Pair;- official - a- Lalt$d;a()Lcom/mojang/datafixers/util/Pair;
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
managerReturns the value of themanagerrecord component.- Returns:
- the value of the managerrecord component
 
- 
initialDataConfigReturns the value of theinitialDataConfigrecord component.- Returns:
- the value of the initialDataConfigrecord component
 
- 
safeModepublic boolean safeMode()Returns the value of thesafeModerecord component.- Returns:
- the value of the safeModerecord component
 
- 
initModepublic boolean initMode()Returns the value of theinitModerecord component.- Returns:
- the value of the initModerecord component
 
 
-