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.CompositeOwner owner, RegistrySetBuilder.UniversalLookup lookup, Map<ResourceLocation,HolderGetter<?>> registries, Map<ResourceKey<?>,RegistrySetBuilder.RegisteredValue<?>> registeredValues, List<RuntimeException> errors)
extends Record  
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final List<RuntimeException>The field for theerrorsrecord component.private final RegistrySetBuilder.UniversalLookupThe field for thelookuprecord component.private final RegistrySetBuilder.CompositeOwnerThe 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 SummaryConstructorsConstructorDescriptionBuildState(RegistrySetBuilder.CompositeOwner owner, RegistrySetBuilder.UniversalLookup lookup, Map<ResourceLocation, HolderGetter<?>> registries, Map<ResourceKey<?>, RegistrySetBuilder.RegisteredValue<?>> registeredValues, List<RuntimeException> errors) Creates an instance of aBuildStaterecord class.
- 
Method SummaryModifier and TypeMethodDescription<T> BootstapContext<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- 
ownerThe field for theownerrecord component.
- 
lookupThe field for thelookuprecord component.
- 
registriesThe field for theregistriesrecord component.
- 
registeredValuesThe field for theregisteredValuesrecord component.
- 
errorsThe field for theerrorsrecord component.
 
- 
- 
Constructor Details- 
BuildStateBuildState(RegistrySetBuilder.CompositeOwner 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 the- ownerrecord component
- lookup- the value for the- lookuprecord component
- registries- the value for the- registriesrecord component
- registeredValues- the value for the- registeredValuesrecord component
- errors- the value for the- errorsrecord component
 
 
- 
- 
Method Details- 
createpublic static RegistrySetBuilder.BuildState create(RegistryAccess p_255995_, Stream<ResourceKey<? extends Registry<?>>> p_256495_) 
- 
bootstapContext
- 
reportUnclaimedRegisteredValuespublic void reportUnclaimedRegisteredValues()
- 
reportNotCollectedHolderspublic void reportNotCollectedHolders()
- 
throwOnErrorpublic void throwOnError()
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
ownerReturns the value of theownerrecord component.- Returns:
- the value of the ownerrecord component
 
- 
lookupReturns the value of thelookuprecord component.- Returns:
- the value of the lookuprecord component
 
- 
registriesReturns the value of theregistriesrecord component.- Returns:
- the value of the registriesrecord component
 
- 
registeredValuesReturns the value of theregisteredValuesrecord component.- Returns:
- the value of the registeredValuesrecord component
 
- 
errorsReturns the value of theerrorsrecord component.- Returns:
- the value of the errorsrecord component
 
 
-