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 Details

    • bakedModels

      private final ModelBakery.BakingResult bakedModels
      The field for the bakedModels record component.
    • modelGroups

      private final it.unimi.dsi.fastutil.objects.Object2IntMap<BlockState> modelGroups
      The field for the modelGroups record component.
    • modelCache

      private final Map<BlockState,BlockStateModel> modelCache
      The field for the modelCache record component.
    • atlasPreparations

      private final Map<ResourceLocation,AtlasSet.StitchResult> atlasPreparations
      The field for the atlasPreparations record component.
    • entityModelSet

      private final EntityModelSet entityModelSet
      The field for the entityModelSet record component.
    • specialBlockModelRenderer

      private final SpecialBlockModelRenderer specialBlockModelRenderer
      The field for the specialBlockModelRenderer record component.
    • readyForUpload

      private final CompletableFuture<Void> readyForUpload
      The field for the readyForUpload 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 a ReloadState record class.
      Parameters:
      bakedModels - the value for the bakedModels record component
      modelGroups - the value for the modelGroups record component
      modelCache - the value for the modelCache record component
      atlasPreparations - the value for the atlasPreparations record component
      entityModelSet - the value for the entityModelSet record component
      specialBlockModelRenderer - the value for the specialBlockModelRenderer record component
      readyForUpload - the value for the readyForUpload record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • bakedModels

      public ModelBakery.BakingResult bakedModels()
      Returns the value of the bakedModels record component.
      Returns:
      the value of the bakedModels record component
    • modelGroups

      public it.unimi.dsi.fastutil.objects.Object2IntMap<BlockState> modelGroups()
      Returns the value of the modelGroups record component.
      Returns:
      the value of the modelGroups record component
    • modelCache

      public Map<BlockState,BlockStateModel> modelCache()
      Returns the value of the modelCache record component.
      Returns:
      the value of the modelCache record component
    • atlasPreparations

      public Map<ResourceLocation,AtlasSet.StitchResult> atlasPreparations()
      Returns the value of the atlasPreparations record component.
      Returns:
      the value of the atlasPreparations record component
    • entityModelSet

      public EntityModelSet entityModelSet()
      Returns the value of the entityModelSet record component.
      Returns:
      the value of the entityModelSet record component
    • specialBlockModelRenderer

      public SpecialBlockModelRenderer specialBlockModelRenderer()
      Returns the value of the specialBlockModelRenderer record component.
      Returns:
      the value of the specialBlockModelRenderer record component
    • readyForUpload

      public CompletableFuture<Void> readyForUpload()
      Returns the value of the readyForUpload record component.
      Returns:
      the value of the readyForUpload record component