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, Map<ResourceKey<? extends Registry<?>>, Map<ResourceKey<?>, List<ICondition>>> conditionsByRegistry)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<ResourceKey<? extends Registry<?>>, Map<ResourceKey<?>, List<ICondition>>> The field for theconditionsByRegistryrecord component.private final HolderLookup.ProviderThe field for thefullrecord component.private final HolderLookup.ProviderThe field for thepatchesrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionPatchedRegistries(HolderLookup.Provider full, HolderLookup.Provider patches) PatchedRegistries(HolderLookup.Provider full, HolderLookup.Provider patches, Map<ResourceKey<? extends Registry<?>>, Map<ResourceKey<?>, List<ICondition>>> conditionsByRegistry) Creates an instance of aPatchedRegistriesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionMap<ResourceKey<? extends Registry<?>>, Map<ResourceKey<?>, List<ICondition>>> Returns the value of theconditionsByRegistryrecord component.final booleanIndicates whether some other object is "equal to" this one.full()Returns the value of thefullrecord component.final inthashCode()Returns a hash code value for this object.patches()Returns the value of thepatchesrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
full
The field for thefullrecord component. -
patches
The field for thepatchesrecord component. -
conditionsByRegistry
private final Map<ResourceKey<? extends Registry<?>>, Map<ResourceKey<?>, List<ICondition>>> conditionsByRegistryThe field for theconditionsByRegistryrecord component.
-
-
Constructor Details
-
PatchedRegistries
-
PatchedRegistries
public PatchedRegistries(HolderLookup.Provider full, HolderLookup.Provider patches, Map<ResourceKey<? extends Registry<?>>, Map<ResourceKey<?>, List<ICondition>>> conditionsByRegistry) Creates an instance of aPatchedRegistriesrecord class.- Parameters:
full- the value for thefullrecord componentpatches- the value for thepatchesrecord componentconditionsByRegistry- the value for theconditionsByRegistryrecord component
-
-
Method Details
-
patchesWithConditions
-
toString
-
hashCode
-
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 thefullrecord component.- Returns:
- the value of the
fullrecord component
-
patches
Returns the value of thepatchesrecord component.- Returns:
- the value of the
patchesrecord component
-
conditionsByRegistry
public Map<ResourceKey<? extends Registry<?>>, Map<ResourceKey<?>, List<ICondition>>> conditionsByRegistry()Returns the value of theconditionsByRegistryrecord component.- Returns:
- the value of the
conditionsByRegistryrecord component
-