Record Class BlockStatesLoader.ModelDefinition

java.lang.Object
java.lang.Record
net.minecraft.client.render.model.BlockStatesLoader.ModelDefinition
Record Components:
components -
values -
Enclosing class:
BlockStatesLoader

@Environment(CLIENT) private static record BlockStatesLoader.ModelDefinition(List<UnbakedModel> components, List<Object> values) extends Record
Mappings:
Namespace Name
named net/minecraft/client/render/model/BlockStatesLoader$ModelDefinition
intermediary net/minecraft/class_9824$class_4455
official gso$d
named components
intermediary comp_2873
official a
named values
intermediary comp_2874
official b
  • Field Details

  • Constructor Details

    • ModelDefinition

      ModelDefinition(List<UnbakedModel> components, List<Object> values)
      Creates an instance of a ModelDefinition record class.
      Parameters:
      components - the value for the components record component
      values - the value for the values record component
  • Method Details

    • create

      public static BlockStatesLoader.ModelDefinition create(BlockState state, MultipartUnbakedModel rawModel, Collection<Property<?>> properties)
      Mappings:
      Namespace Name Mixin selector
      named create Lnet/minecraft/client/render/model/BlockStatesLoader$ModelDefinition;create(Lnet/minecraft/block/BlockState;Lnet/minecraft/client/render/model/MultipartUnbakedModel;Ljava/util/Collection;)Lnet/minecraft/client/render/model/BlockStatesLoader$ModelDefinition;
      intermediary method_21607 Lnet/minecraft/class_9824$class_4455;method_21607(Lnet/minecraft/class_2680;Lnet/minecraft/class_816;Ljava/util/Collection;)Lnet/minecraft/class_9824$class_4455;
      official a Lgso$d;a(Ldtc;Lggo;Ljava/util/Collection;)Lgso$d;
    • create

      public static BlockStatesLoader.ModelDefinition create(BlockState state, UnbakedModel rawModel, Collection<Property<?>> properties)
      Mappings:
      Namespace Name Mixin selector
      named create Lnet/minecraft/client/render/model/BlockStatesLoader$ModelDefinition;create(Lnet/minecraft/block/BlockState;Lnet/minecraft/client/render/model/UnbakedModel;Ljava/util/Collection;)Lnet/minecraft/client/render/model/BlockStatesLoader$ModelDefinition;
      intermediary method_21608 Lnet/minecraft/class_9824$class_4455;method_21608(Lnet/minecraft/class_2680;Lnet/minecraft/class_1100;Ljava/util/Collection;)Lnet/minecraft/class_9824$class_4455;
      official a Lgso$d;a(Ldtc;Lgsy;Ljava/util/Collection;)Lgso$d;
    • getStateValues

      private static List<Object> getStateValues(BlockState state, Collection<Property<?>> properties)
      Mappings:
      Namespace Name Mixin selector
      named getStateValues Lnet/minecraft/client/render/model/BlockStatesLoader$ModelDefinition;getStateValues(Lnet/minecraft/block/BlockState;Ljava/util/Collection;)Ljava/util/List;
      intermediary method_21609 Lnet/minecraft/class_9824$class_4455;method_21609(Lnet/minecraft/class_2680;Ljava/util/Collection;)Ljava/util/List;
      official a Lgso$d;a(Ldtc;Ljava/util/Collection;)Ljava/util/List;
    • 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.
    • components

      public List<UnbakedModel> components()
      Returns the value of the components record component.
      Returns:
      the value of the components record component
    • values

      public List<Object> values()
      Returns the value of the values record component.
      Returns:
      the value of the values record component