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 Details

    • modelBakery

      private final ModelBakery modelBakery
      The field for the modelBakery record component.
    • missingModel

      private final BakedModel missingModel
      The field for the missingModel record component.
    • modelCache

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

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

      private final CompletableFuture<Void> readyForUpload
      The field for the readyForUpload 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 a ReloadState record class.
      Parameters:
      modelBakery - the value for the modelBakery record component
      missingModel - the value for the missingModel record component
      modelCache - the value for the modelCache record component
      atlasPreparations - the value for the atlasPreparations 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.
    • modelBakery

      public ModelBakery modelBakery()
      Returns the value of the modelBakery record component.
      Returns:
      the value of the modelBakery record component
    • missingModel

      public BakedModel missingModel()
      Returns the value of the missingModel record component.
      Returns:
      the value of the missingModel record component
    • modelCache

      public Map<BlockState,BakedModel> 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
    • readyForUpload

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