Record Class DatapackRegistrySets<T>
java.lang.Object
java.lang.Record
net.neoforged.neoforge.data.event.DatapackRegistrySets<T>
- Type Parameters:
T- The type of the object used for each layer.- Record Components:
worldAndDimension- The object for the world and dimension datapack registries.reloadable- The object for the reloadable datapack registries.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final TThe field for thereloadablerecord component.private final TThe field for theworldAndDimensionrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionDatapackRegistrySets(T worldAndDimension, T reloadable) Creates an instance of aDatapackRegistrySetsrecord class. -
Method Summary
Modifier 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 thereloadablerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theworldAndDimensionrecord component.
-
Field Details
-
worldAndDimension
The field for theworldAndDimensionrecord component. -
reloadable
The field for thereloadablerecord component.
-
-
Constructor Details
-
DatapackRegistrySets
Creates an instance of aDatapackRegistrySetsrecord class.- Parameters:
worldAndDimension- the value for theworldAndDimensionrecord componentreloadable- the value for thereloadablerecord component
-
-
Method Details
-
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). -
worldAndDimension
Returns the value of theworldAndDimensionrecord component.- Returns:
- the value of the
worldAndDimensionrecord component
-
reloadable
Returns the value of thereloadablerecord component.- Returns:
- the value of the
reloadablerecord component
-