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 SummaryFieldsModifier and TypeFieldDescriptionprivate final Map<ResourceLocation,AtlasSet.StitchResult> The field for theatlasPreparationsrecord component.private final BakedModelThe field for themissingModelrecord component.private final ModelBakeryThe field for themodelBakeryrecord component.private final Map<BlockState,BakedModel> The field for themodelCacherecord component.private final CompletableFuture<Void>The field for thereadyForUploadrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionReloadState(ModelBakery modelBakery, BakedModel missingModel, Map<BlockState, BakedModel> modelCache, Map<ResourceLocation, AtlasSet.StitchResult> atlasPreparations, CompletableFuture<Void> readyForUpload) Creates an instance of aReloadStaterecord class.
- 
Method SummaryModifier and TypeMethodDescriptionReturns the value of theatlasPreparationsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themissingModelrecord component.Returns the value of themodelBakeryrecord component.Returns the value of themodelCacherecord component.Returns the value of thereadyForUploadrecord component.final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
modelBakeryThe field for themodelBakeryrecord component.
- 
missingModelThe field for themissingModelrecord component.
- 
modelCacheThe field for themodelCacherecord component.
- 
atlasPreparationsThe field for theatlasPreparationsrecord component.
- 
readyForUploadThe field for thereadyForUploadrecord component.
 
- 
- 
Constructor Details- 
ReloadStateReloadState(ModelBakery modelBakery, BakedModel missingModel, Map<BlockState, BakedModel> modelCache, Map<ResourceLocation, AtlasSet.StitchResult> atlasPreparations, CompletableFuture<Void> readyForUpload) Creates an instance of aReloadStaterecord class.- Parameters:
- modelBakery- the value for the- modelBakeryrecord component
- missingModel- the value for the- missingModelrecord component
- modelCache- the value for the- modelCacherecord component
- atlasPreparations- the value for the- atlasPreparationsrecord component
- readyForUpload- the value for the- readyForUploadrecord component
 
 
- 
- 
Method Details- 
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).
- 
modelBakeryReturns the value of themodelBakeryrecord component.- Returns:
- the value of the modelBakeryrecord component
 
- 
missingModelReturns the value of themissingModelrecord component.- Returns:
- the value of the missingModelrecord component
 
- 
modelCacheReturns the value of themodelCacherecord component.- Returns:
- the value of the modelCacherecord component
 
- 
atlasPreparationsReturns the value of theatlasPreparationsrecord component.- Returns:
- the value of the atlasPreparationsrecord component
 
- 
readyForUploadReturns the value of thereadyForUploadrecord component.- Returns:
- the value of the readyForUploadrecord component
 
 
-