Package net.minecraft.core
Record Class RegistrySetBuilder.BuildState
java.lang.Object
java.lang.Record
net.minecraft.core.RegistrySetBuilder.BuildState
- Enclosing class:
RegistrySetBuilder
static record RegistrySetBuilder.BuildState(RegistrySetBuilder.UniversalOwner owner, RegistrySetBuilder.UniversalLookup lookup, Map<ResourceLocation,HolderGetter<?>> registries, Map<ResourceKey<?>,RegistrySetBuilder.RegisteredValue<?>> registeredValues, List<RuntimeException> errors)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<RuntimeException> The field for theerrorsrecord component.private final RegistrySetBuilder.UniversalLookupThe field for thelookuprecord component.private final RegistrySetBuilder.UniversalOwnerThe field for theownerrecord component.private final Map<ResourceKey<?>, RegistrySetBuilder.RegisteredValue<?>> The field for theregisteredValuesrecord component.private final Map<ResourceLocation, HolderGetter<?>> The field for theregistriesrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionBuildState(RegistrySetBuilder.UniversalOwner owner, RegistrySetBuilder.UniversalLookup lookup, Map<ResourceLocation, HolderGetter<?>> registries, Map<ResourceKey<?>, RegistrySetBuilder.RegisteredValue<?>> registeredValues, List<RuntimeException> errors) Creates an instance of aBuildStaterecord class. -
Method Summary
Modifier and TypeMethodDescription<T> BootstrapContext<T> create(RegistryAccess p_255995_, Stream<ResourceKey<? extends Registry<?>>> p_256495_) final 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.lookup()Returns the value of thelookuprecord component.owner()Returns the value of theownerrecord component.Returns the value of theregisteredValuesrecord component.Returns the value of theregistriesrecord component.voidvoidvoidfinal StringtoString()Returns a string representation of this record class.
-
Field Details
-
owner
The field for theownerrecord component. -
lookup
The field for thelookuprecord component. -
registries
The field for theregistriesrecord component. -
registeredValues
The field for theregisteredValuesrecord component. -
errors
The field for theerrorsrecord component.
-
-
Constructor Details
-
BuildState
BuildState(RegistrySetBuilder.UniversalOwner owner, RegistrySetBuilder.UniversalLookup lookup, Map<ResourceLocation, HolderGetter<?>> registries, Map<ResourceKey<?>, RegistrySetBuilder.RegisteredValue<?>> registeredValues, List<RuntimeException> errors) Creates an instance of aBuildStaterecord class.- Parameters:
owner- the value for theownerrecord componentlookup- the value for thelookuprecord componentregistries- the value for theregistriesrecord componentregisteredValues- the value for theregisteredValuesrecord componenterrors- the value for theerrorsrecord component
-
-
Method Details
-
create
public static RegistrySetBuilder.BuildState create(RegistryAccess p_255995_, Stream<ResourceKey<? extends Registry<?>>> p_256495_) -
bootstrapContext
-
reportUnclaimedRegisteredValues
public void reportUnclaimedRegisteredValues() -
reportNotCollectedHolders
public void reportNotCollectedHolders() -
throwOnError
public void throwOnError() -
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). -
owner
Returns the value of theownerrecord component.- Returns:
- the value of the
ownerrecord component
-
lookup
Returns the value of thelookuprecord component.- Returns:
- the value of the
lookuprecord component
-
registries
Returns the value of theregistriesrecord component.- Returns:
- the value of the
registriesrecord component
-
registeredValues
Returns the value of theregisteredValuesrecord component.- Returns:
- the value of the
registeredValuesrecord component
-
errors
Returns the value of theerrorsrecord component.- Returns:
- the value of the
errorsrecord component
-