Record Class ModelBakery.BakingResult

java.lang.Object
java.lang.Record
net.minecraft.client.resources.model.ModelBakery.BakingResult
Enclosing class:
ModelBakery

public static record ModelBakery.BakingResult(BakedModel missingModel, Map<ModelResourceLocation,BakedModel> blockStateModels, ItemModel missingItemModel, Map<ResourceLocation,ItemModel> itemStackModels, Map<ResourceLocation,ClientItem.Properties> itemProperties, Map<ResourceLocation,BakedModel> standaloneModels) extends Record
  • Field Details

    • missingModel

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

      private final Map<ModelResourceLocation,BakedModel> blockStateModels
      The field for the blockStateModels record component.
    • missingItemModel

      private final ItemModel missingItemModel
      The field for the missingItemModel record component.
    • itemStackModels

      private final Map<ResourceLocation,ItemModel> itemStackModels
      The field for the itemStackModels record component.
    • itemProperties

      private final Map<ResourceLocation,ClientItem.Properties> itemProperties
      The field for the itemProperties record component.
    • standaloneModels

      private final Map<ResourceLocation,BakedModel> standaloneModels
      The field for the standaloneModels record component.
  • Constructor Details

  • 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.
    • missingModel

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

      public Map<ModelResourceLocation,BakedModel> blockStateModels()
      Returns the value of the blockStateModels record component.
      Returns:
      the value of the blockStateModels record component
    • missingItemModel

      public ItemModel missingItemModel()
      Returns the value of the missingItemModel record component.
      Returns:
      the value of the missingItemModel record component
    • itemStackModels

      public Map<ResourceLocation,ItemModel> itemStackModels()
      Returns the value of the itemStackModels record component.
      Returns:
      the value of the itemStackModels record component
    • itemProperties

      public Map<ResourceLocation,ClientItem.Properties> itemProperties()
      Returns the value of the itemProperties record component.
      Returns:
      the value of the itemProperties record component
    • standaloneModels

      public Map<ResourceLocation,BakedModel> standaloneModels()
      Returns the value of the standaloneModels record component.
      Returns:
      the value of the standaloneModels record component