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 theatlasPreparations
record component.private final ModelBakery.BakingResult
The field for thebakedModels
record component.private final EntityModelSet
The field for theentityModelSet
record component.private final Map
<BlockState, BlockStateModel> The field for themodelCache
record component.private final it.unimi.dsi.fastutil.objects.Object2IntMap
<BlockState> The field for themodelGroups
record component.private final CompletableFuture
<Void> The field for thereadyForUpload
record component.private final SpecialBlockModelRenderer
The field for thespecialBlockModelRenderer
record 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 aReloadState
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theatlasPreparations
record component.Returns the value of thebakedModels
record component.Returns the value of theentityModelSet
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 themodelCache
record component.it.unimi.dsi.fastutil.objects.Object2IntMap
<BlockState> Returns the value of themodelGroups
record component.Returns the value of thereadyForUpload
record component.Returns the value of thespecialBlockModelRenderer
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
bakedModels
The field for thebakedModels
record component. -
modelGroups
The field for themodelGroups
record component. -
modelCache
The field for themodelCache
record component. -
atlasPreparations
The field for theatlasPreparations
record component. -
entityModelSet
The field for theentityModelSet
record component. -
specialBlockModelRenderer
The field for thespecialBlockModelRenderer
record component. -
readyForUpload
The field for thereadyForUpload
record 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 aReloadState
record class.- Parameters:
bakedModels
- the value for thebakedModels
record componentmodelGroups
- the value for themodelGroups
record componentmodelCache
- the value for themodelCache
record componentatlasPreparations
- the value for theatlasPreparations
record componententityModelSet
- the value for theentityModelSet
record componentspecialBlockModelRenderer
- the value for thespecialBlockModelRenderer
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)
. -
bakedModels
Returns the value of thebakedModels
record component.- Returns:
- the value of the
bakedModels
record component
-
modelGroups
Returns the value of themodelGroups
record component.- Returns:
- the value of the
modelGroups
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
-
entityModelSet
Returns the value of theentityModelSet
record component.- Returns:
- the value of the
entityModelSet
record component
-
specialBlockModelRenderer
Returns the value of thespecialBlockModelRenderer
record component.- Returns:
- the value of the
specialBlockModelRenderer
record component
-
readyForUpload
Returns the value of thereadyForUpload
record component.- Returns:
- the value of the
readyForUpload
record component
-