Record Class DirectRegistryCallback<T>
java.lang.Object
java.lang.Record
com.refinedmods.refinedstorage.common.content.DirectRegistryCallback<T>
- All Implemented Interfaces:
RegistryCallback<T>
public record DirectRegistryCallback<T>(net.minecraft.core.Registry<T> registry)
extends Record
implements RegistryCallback<T>
-
Constructor Summary
ConstructorsConstructorDescriptionDirectRegistryCallback(net.minecraft.core.Registry<T> registry) Creates an instance of aDirectRegistryCallbackrecord 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.net.minecraft.core.Registry<T> registry()Returns the value of theregistryrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DirectRegistryCallback
Creates an instance of aDirectRegistryCallbackrecord class.- Parameters:
registry- the value for theregistryrecord component
-
-
Method Details
-
register
-
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). -
registry
Returns the value of theregistryrecord component.- Returns:
- the value of the
registryrecord component
-