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 amx$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 Summary
Modifier and TypeFieldDescriptionprivate final DataConfiguration
The field for theinitialDataConfig
record component.private final boolean
The field for theinitMode
record component.private final ResourcePackManager
The field for themanager
record component.private final boolean
The field for thesafeMode
record component. -
Constructor Summary
ConstructorDescriptionDataPacks
(ResourcePackManager resourcePackManager, DataConfiguration dataConfiguration, boolean bool, boolean bool2) -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of theinitialDataConfig
record component.boolean
initMode()
Returns the value of theinitMode
record component.com.mojang.datafixers.util.Pair
<DataConfiguration, LifecycledResourceManager> load()
manager()
Returns the value of themanager
record component.boolean
safeMode()
Returns the value of thesafeMode
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
manager
The field for themanager
record component. -
initialDataConfig
The field for theinitialDataConfig
record component. -
safeMode
private final boolean safeModeThe field for thesafeMode
record component. -
initMode
private final boolean initModeThe field for theinitMode
record component.
-
-
Constructor Details
-
DataPacks
public 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
Lamx$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 themanager
record component.- Returns:
- the value of the
manager
record component
-
initialDataConfig
Returns the value of theinitialDataConfig
record component.- Returns:
- the value of the
initialDataConfig
record component
-
safeMode
public boolean safeMode()Returns the value of thesafeMode
record component.- Returns:
- the value of the
safeMode
record component
-
initMode
public boolean initMode()Returns the value of theinitMode
record component.- Returns:
- the value of the
initMode
record component
-