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 Summary
Modifier and TypeFieldDescriptionprivate final List<RuntimeException>
The field for theerrors
record component.private final RegistrySetBuilder.UniversalLookup
The field for thelookup
record component.private final RegistrySetBuilder.CompositeOwner
The field for theowner
record component.private final Map<ResourceKey<?>,
RegistrySetBuilder.RegisteredValue<?>> The field for theregisteredValues
record component.private final Map<ResourceLocation,
HolderGetter<?>> The field for theregistries
record component. -
Constructor Summary
ConstructorDescriptionBuildState
(RegistrySetBuilder.CompositeOwner owner, RegistrySetBuilder.UniversalLookup lookup, Map<ResourceLocation, HolderGetter<?>> registries, Map<ResourceKey<?>, RegistrySetBuilder.RegisteredValue<?>> registeredValues, List<RuntimeException> errors) Creates an instance of aBuildState
record class. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addOwner
(HolderOwner<?> p_256407_) <T> BootstapContext<T>
create
(RegistryAccess p_255995_, Stream<ResourceKey<? extends Registry<?>>> p_256495_) final boolean
Indicates whether some other object is "equal to" this one.errors()
Returns the value of theerrors
record component.void
fillMissingHolders
(HolderLookup.Provider p_255679_) final int
hashCode()
Returns a hash code value for this object.lookup()
Returns the value of thelookup
record component.owner()
Returns the value of theowner
record component.Returns the value of theregisteredValues
record component.Returns the value of theregistries
record component.void
void
final String
toString()
Returns a string representation of this record class.
-
Field Details
-
owner
The field for theowner
record component. -
lookup
The field for thelookup
record component. -
registries
The field for theregistries
record component. -
registeredValues
The field for theregisteredValues
record component. -
errors
The field for theerrors
record component.
-
-
Constructor Details
-
BuildState
BuildState(RegistrySetBuilder.CompositeOwner owner, RegistrySetBuilder.UniversalLookup lookup, Map<ResourceLocation, HolderGetter<?>> registries, Map<ResourceKey<?>, RegistrySetBuilder.RegisteredValue<?>> registeredValues, List<RuntimeException> errors) Creates an instance of aBuildState
record class.- Parameters:
owner
- the value for theowner
record componentlookup
- the value for thelookup
record componentregistries
- the value for theregistries
record componentregisteredValues
- the value for theregisteredValues
record componenterrors
- the value for theerrors
record component
-
-
Method Details
-
create
public static RegistrySetBuilder.BuildState create(RegistryAccess p_255995_, Stream<ResourceKey<? extends Registry<?>>> p_256495_) -
bootstapContext
-
reportRemainingUnreferencedValues
public void reportRemainingUnreferencedValues() -
throwOnError
public void throwOnError() -
addOwner
-
fillMissingHolders
-
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 theowner
record component.- Returns:
- the value of the
owner
record component
-
lookup
Returns the value of thelookup
record component.- Returns:
- the value of the
lookup
record component
-
registries
Returns the value of theregistries
record component.- Returns:
- the value of the
registries
record component
-
registeredValues
Returns the value of theregisteredValues
record component.- Returns:
- the value of the
registeredValues
record component
-
errors
Returns the value of theerrors
record component.- Returns:
- the value of the
errors
record component
-