Record Class DataPackRegistriesHooks.DatapackRegistryGroup
java.lang.Object
java.lang.Record
net.neoforged.neoforge.registries.DataPackRegistriesHooks.DatapackRegistryGroup
- Enclosing class:
DataPackRegistriesHooks
private static record DataPackRegistriesHooks.DatapackRegistryGroup(List<RegistryDataLoader.RegistryData<?>> registryData, Set<ResourceKey<? extends Registry<?>>> registryKeys)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<RegistryDataLoader.RegistryData<?>> The field for theregistryDatarecord component.private final Set<ResourceKey<? extends Registry<?>>> The field for theregistryKeysrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescription(package private)privateDatapackRegistryGroup(List<RegistryDataLoader.RegistryData<?>> registryData, Set<ResourceKey<? extends Registry<?>>> registryKeys) Creates an instance of aDatapackRegistryGrouprecord class. -
Method Summary
Modifier and TypeMethodDescription(package private) voidadd(RegistryDataLoader.RegistryData<?> data) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.(package private) List<RegistryDataLoader.RegistryData<?>> init(List<RegistryDataLoader.RegistryData<?>> vanillaData) Returns the value of theregistryDatarecord component.Set<ResourceKey<? extends Registry<?>>> Returns the value of theregistryKeysrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
registryData
The field for theregistryDatarecord component. -
registryKeys
The field for theregistryKeysrecord component.
-
-
Constructor Details
-
DatapackRegistryGroup
DatapackRegistryGroup() -
DatapackRegistryGroup
private DatapackRegistryGroup(List<RegistryDataLoader.RegistryData<?>> registryData, Set<ResourceKey<? extends Registry<?>>> registryKeys) Creates an instance of aDatapackRegistryGrouprecord class.- Parameters:
registryData- the value for theregistryDatarecord componentregistryKeys- the value for theregistryKeysrecord component
-
-
Method Details
-
init
-
add
-
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). -
registryData
Returns the value of theregistryDatarecord component.- Returns:
- the value of the
registryDatarecord component
-
registryKeys
Returns the value of theregistryKeysrecord component.- Returns:
- the value of the
registryKeysrecord component
-