Package foundry.veil.api.resource
Record Class VeilDynamicRegistry.Data
java.lang.Object
java.lang.Record
foundry.veil.api.resource.VeilDynamicRegistry.Data
- Record Components:
registryAccess- The created registry accesserrors- Any errors thrown while loading registries
- Enclosing class:
VeilDynamicRegistry
public static record VeilDynamicRegistry.Data(net.minecraft.core.RegistryAccess registryAccess, Map<net.minecraft.resources.ResourceKey<?>,Exception> errors)
extends Record
Stored data about loaded dynamic registries.
- Since:
- 1.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.errors()Returns the value of theerrorsrecord component.final inthashCode()Returns a hash code value for this object.net.minecraft.core.RegistryAccessReturns the value of theregistryAccessrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Data
public Data(net.minecraft.core.RegistryAccess registryAccess, Map<net.minecraft.resources.ResourceKey<?>, Exception> errors) Creates an instance of aDatarecord class.- Parameters:
registryAccess- the value for theregistryAccessrecord componenterrors- the value for theerrorsrecord 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). -
registryAccess
public net.minecraft.core.RegistryAccess registryAccess()Returns the value of theregistryAccessrecord component.- Returns:
- the value of the
registryAccessrecord component
-
errors
Returns the value of theerrorsrecord component.- Returns:
- the value of the
errorsrecord component
-