Package net.minecraft.core
Record Class RegistrySetBuilder.PatchedRegistries
java.lang.Object
java.lang.Record
net.minecraft.core.RegistrySetBuilder.PatchedRegistries
- Enclosing class:
- RegistrySetBuilder
public static record RegistrySetBuilder.PatchedRegistries(HolderLookup.Provider full, HolderLookup.Provider patches)
extends Record
-
Field Summary
Modifier and TypeFieldDescriptionprivate final HolderLookup.Provider
The field for thefull
record component.private final HolderLookup.Provider
The field for thepatches
record component. -
Constructor Summary
ConstructorDescriptionPatchedRegistries
(HolderLookup.Provider full, HolderLookup.Provider patches) Creates an instance of aPatchedRegistries
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.full()
Returns the value of thefull
record component.final int
hashCode()
Returns a hash code value for this object.patches()
Returns the value of thepatches
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
full
The field for thefull
record component. -
patches
The field for thepatches
record component.
-
-
Constructor Details
-
PatchedRegistries
Creates an instance of aPatchedRegistries
record class.- Parameters:
full
- the value for thefull
record componentpatches
- the value for thepatches
record component
-
-
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
full
Returns the value of thefull
record component.- Returns:
- the value of the
full
record component
-
patches
Returns the value of thepatches
record component.- Returns:
- the value of the
patches
record component
-