Record Class ModelManager.ReloadState
java.lang.Object
java.lang.Record
net.minecraft.client.resources.model.ModelManager.ReloadState
- Enclosing class:
ModelManager
static record ModelManager.ReloadState(ModelBakery modelBakery, BakedModel missingModel, Map<BlockState,BakedModel> modelCache, Map<ResourceLocation,AtlasSet.StitchResult> atlasPreparations, CompletableFuture<Void> readyForUpload)
extends Record
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Map
<ResourceLocation, AtlasSet.StitchResult> The field for theatlasPreparations
record component.private final BakedModel
The field for themissingModel
record component.private final ModelBakery
The field for themodelBakery
record component.private final Map
<BlockState, BakedModel> The field for themodelCache
record component.private final CompletableFuture
<Void> The field for thereadyForUpload
record component. -
Constructor Summary
ConstructorDescriptionReloadState
(ModelBakery modelBakery, BakedModel missingModel, Map<BlockState, BakedModel> modelCache, Map<ResourceLocation, AtlasSet.StitchResult> atlasPreparations, CompletableFuture<Void> readyForUpload) Creates an instance of aReloadState
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theatlasPreparations
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of themissingModel
record component.Returns the value of themodelBakery
record component.Returns the value of themodelCache
record component.Returns the value of thereadyForUpload
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
modelBakery
The field for themodelBakery
record component. -
missingModel
The field for themissingModel
record component. -
modelCache
The field for themodelCache
record component. -
atlasPreparations
The field for theatlasPreparations
record component. -
readyForUpload
The field for thereadyForUpload
record component.
-
-
Constructor Details
-
ReloadState
ReloadState(ModelBakery modelBakery, BakedModel missingModel, Map<BlockState, BakedModel> modelCache, Map<ResourceLocation, AtlasSet.StitchResult> atlasPreparations, CompletableFuture<Void> readyForUpload) Creates an instance of aReloadState
record class.- Parameters:
modelBakery
- the value for themodelBakery
record componentmissingModel
- the value for themissingModel
record componentmodelCache
- the value for themodelCache
record componentatlasPreparations
- the value for theatlasPreparations
record componentreadyForUpload
- the value for thereadyForUpload
record 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)
. -
modelBakery
Returns the value of themodelBakery
record component.- Returns:
- the value of the
modelBakery
record component
-
missingModel
Returns the value of themissingModel
record component.- Returns:
- the value of the
missingModel
record component
-
modelCache
Returns the value of themodelCache
record component.- Returns:
- the value of the
modelCache
record component
-
atlasPreparations
Returns the value of theatlasPreparations
record component.- Returns:
- the value of the
atlasPreparations
record component
-
readyForUpload
Returns the value of thereadyForUpload
record component.- Returns:
- the value of the
readyForUpload
record component
-