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.BakingResult bakedModels, it.unimi.dsi.fastutil.objects.Object2IntMap<BlockState> modelGroups, Map<BlockState,BlockStateModel> modelCache, Map<ResourceLocation,AtlasSet.StitchResult> atlasPreparations, EntityModelSet entityModelSet, SpecialBlockModelRenderer specialBlockModelRenderer, CompletableFuture<Void> readyForUpload)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<ResourceLocation, AtlasSet.StitchResult> The field for theatlasPreparationsrecord component.private final ModelBakery.BakingResultThe field for thebakedModelsrecord component.private final EntityModelSetThe field for theentityModelSetrecord component.private final Map<BlockState, BlockStateModel> The field for themodelCacherecord component.private final it.unimi.dsi.fastutil.objects.Object2IntMap<BlockState> The field for themodelGroupsrecord component.private final CompletableFuture<Void> The field for thereadyForUploadrecord component.private final SpecialBlockModelRendererThe field for thespecialBlockModelRendererrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionReloadState(ModelBakery.BakingResult bakedModels, it.unimi.dsi.fastutil.objects.Object2IntMap<BlockState> modelGroups, Map<BlockState, BlockStateModel> modelCache, Map<ResourceLocation, AtlasSet.StitchResult> atlasPreparations, EntityModelSet entityModelSet, SpecialBlockModelRenderer specialBlockModelRenderer, CompletableFuture<Void> readyForUpload) Creates an instance of aReloadStaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theatlasPreparationsrecord component.Returns the value of thebakedModelsrecord component.Returns the value of theentityModelSetrecord 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 themodelCacherecord component.it.unimi.dsi.fastutil.objects.Object2IntMap<BlockState> Returns the value of themodelGroupsrecord component.Returns the value of thereadyForUploadrecord component.Returns the value of thespecialBlockModelRendererrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
bakedModels
The field for thebakedModelsrecord component. -
modelGroups
The field for themodelGroupsrecord component. -
modelCache
The field for themodelCacherecord component. -
atlasPreparations
The field for theatlasPreparationsrecord component. -
entityModelSet
The field for theentityModelSetrecord component. -
specialBlockModelRenderer
The field for thespecialBlockModelRendererrecord component. -
readyForUpload
The field for thereadyForUploadrecord component.
-
-
Constructor Details
-
ReloadState
ReloadState(ModelBakery.BakingResult bakedModels, it.unimi.dsi.fastutil.objects.Object2IntMap<BlockState> modelGroups, Map<BlockState, BlockStateModel> modelCache, Map<ResourceLocation, AtlasSet.StitchResult> atlasPreparations, EntityModelSet entityModelSet, SpecialBlockModelRenderer specialBlockModelRenderer, CompletableFuture<Void> readyForUpload) Creates an instance of aReloadStaterecord class.- Parameters:
bakedModels- the value for thebakedModelsrecord componentmodelGroups- the value for themodelGroupsrecord componentmodelCache- the value for themodelCacherecord componentatlasPreparations- the value for theatlasPreparationsrecord componententityModelSet- the value for theentityModelSetrecord componentspecialBlockModelRenderer- the value for thespecialBlockModelRendererrecord componentreadyForUpload- the value for thereadyForUploadrecord 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). -
bakedModels
Returns the value of thebakedModelsrecord component.- Returns:
- the value of the
bakedModelsrecord component
-
modelGroups
Returns the value of themodelGroupsrecord component.- Returns:
- the value of the
modelGroupsrecord component
-
modelCache
Returns the value of themodelCacherecord component.- Returns:
- the value of the
modelCacherecord component
-
atlasPreparations
Returns the value of theatlasPreparationsrecord component.- Returns:
- the value of the
atlasPreparationsrecord component
-
entityModelSet
Returns the value of theentityModelSetrecord component.- Returns:
- the value of the
entityModelSetrecord component
-
specialBlockModelRenderer
Returns the value of thespecialBlockModelRendererrecord component.- Returns:
- the value of the
specialBlockModelRendererrecord component
-
readyForUpload
Returns the value of thereadyForUploadrecord component.- Returns:
- the value of the
readyForUploadrecord component
-