Record Class ReloadableServerRegistries.LoadResult
java.lang.Object
java.lang.Record
net.minecraft.server.ReloadableServerRegistries.LoadResult
- Enclosing class:
ReloadableServerRegistries
public static record ReloadableServerRegistries.LoadResult(LayeredRegistryAccess<RegistryLayer> layers, HolderLookup.Provider lookupWithUpdatedTags)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final LayeredRegistryAccess<RegistryLayer> The field for thelayersrecord component.private final HolderLookup.ProviderThe field for thelookupWithUpdatedTagsrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionLoadResult(LayeredRegistryAccess<RegistryLayer> layers, HolderLookup.Provider lookupWithUpdatedTags) Creates an instance of aLoadResultrecord 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.layers()Returns the value of thelayersrecord component.Returns the value of thelookupWithUpdatedTagsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
layers
The field for thelayersrecord component. -
lookupWithUpdatedTags
The field for thelookupWithUpdatedTagsrecord component.
-
-
Constructor Details
-
LoadResult
public LoadResult(LayeredRegistryAccess<RegistryLayer> layers, HolderLookup.Provider lookupWithUpdatedTags) Creates an instance of aLoadResultrecord class.- Parameters:
layers- the value for thelayersrecord componentlookupWithUpdatedTags- the value for thelookupWithUpdatedTagsrecord 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). -
layers
Returns the value of thelayersrecord component.- Returns:
- the value of the
layersrecord component
-
lookupWithUpdatedTags
Returns the value of thelookupWithUpdatedTagsrecord component.- Returns:
- the value of the
lookupWithUpdatedTagsrecord component
-