Record Class ModelManager.ReloadState

java.lang.Object
java.lang.Record
net.minecraft.client.resources.model.ModelManager.ReloadState
Enclosing class:
ModelManager

private static record ModelManager.ReloadState(ModelBakery.BakingResult bakedModels, it.unimi.dsi.fastutil.objects.Object2IntMap<BlockState> modelGroups, Map<BlockState, BlockStateModel> blockStateModels, Map<BlockState, BlockModel> blockModels, Map<Fluid, FluidModel> fluidModels, EntityModelSet entityModelSet) 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.
    • blockStateModels

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

      private final Map<BlockState, BlockModel> blockModels
      The field for the blockModels record component.
    • fluidModels

      private final Map<Fluid, FluidModel> fluidModels
      The field for the fluidModels record component.
    • entityModelSet

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

    • ReloadState

      private ReloadState(ModelBakery.BakingResult bakedModels, it.unimi.dsi.fastutil.objects.Object2IntMap<BlockState> modelGroups, Map<BlockState, BlockStateModel> blockStateModels, Map<BlockState, BlockModel> blockModels, Map<Fluid, FluidModel> fluidModels, EntityModelSet entityModelSet)
      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
      blockStateModels - the value for the blockStateModels record component
      blockModels - the value for the blockModels record component
      fluidModels - the value for the fluidModels record component
      entityModelSet - the value for the entityModelSet 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
    • blockStateModels

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

      public Map<BlockState, BlockModel> blockModels()
      Returns the value of the blockModels record component.
      Returns:
      the value of the blockModels record component
    • fluidModels

      public Map<Fluid, FluidModel> fluidModels()
      Returns the value of the fluidModels record component.
      Returns:
      the value of the fluidModels record component
    • entityModelSet

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