Record Class UnbakedGeometry

java.lang.Object
java.lang.Record
net.minecraft.client.render.model.UnbakedGeometry
Record Components:
elements -
All Implemented Interfaces:
Geometry

@Environment(CLIENT) public record UnbakedGeometry(List<ModelElement> elements) extends Record implements Geometry
Mappings:
Namespace Name
named net/minecraft/client/render/model/UnbakedGeometry
intermediary net/minecraft/class_10802
official gzh
named elements
intermediary comp_3753
official b
  • Field Details

  • Constructor Details

  • Method Details

    • bake

      public BakedGeometry bake(ModelTextures textures, Baker baker, ModelBakeSettings settings, SimpleModel model)
      Specified by:
      bake in interface Geometry
      Mappings:
      Namespace Name Mixin selector
      named bake Lnet/minecraft/client/render/model/Geometry;bake(Lnet/minecraft/client/render/model/ModelTextures;Lnet/minecraft/client/render/model/Baker;Lnet/minecraft/client/render/model/ModelBakeSettings;Lnet/minecraft/client/render/model/SimpleModel;)Lnet/minecraft/client/render/model/BakedGeometry;
      intermediary bake Lnet/minecraft/class_10820;bake(Lnet/minecraft/class_10419;Lnet/minecraft/class_7775;Lnet/minecraft/class_3665;Lnet/minecraft/class_10813;)Lnet/minecraft/class_10817;
      official bake Lhum;bake(Lgzj;Lhub;Lhuh;Lhud;)Lhui;
    • bakeGeometry

      public static BakedGeometry bakeGeometry(List<ModelElement> elements, ModelTextures textures, ErrorCollectingSpriteGetter errorCollectingSpriteGetter, ModelBakeSettings settings, SimpleModel model)
      Mappings:
      Namespace Name Mixin selector
      named bakeGeometry Lnet/minecraft/client/render/model/UnbakedGeometry;bakeGeometry(Ljava/util/List;Lnet/minecraft/client/render/model/ModelTextures;Lnet/minecraft/client/render/model/ErrorCollectingSpriteGetter;Lnet/minecraft/client/render/model/ModelBakeSettings;Lnet/minecraft/client/render/model/SimpleModel;)Lnet/minecraft/client/render/model/BakedGeometry;
      intermediary method_67934 Lnet/minecraft/class_10802;method_67934(Ljava/util/List;Lnet/minecraft/class_10419;Lnet/minecraft/class_9826;Lnet/minecraft/class_3665;Lnet/minecraft/class_10813;)Lnet/minecraft/class_10817;
      official a Lgzh;a(Ljava/util/List;Lgzj;Lhul;Lhuh;Lhud;)Lhui;
    • bakeQuad

      private static BakedQuad bakeQuad(ModelElement element, ModelElementFace face, Sprite sprite, Direction facing, ModelBakeSettings settings)
      Mappings:
      Namespace Name Mixin selector
      named bakeQuad Lnet/minecraft/client/render/model/UnbakedGeometry;bakeQuad(Lnet/minecraft/client/render/model/json/ModelElement;Lnet/minecraft/client/render/model/json/ModelElementFace;Lnet/minecraft/client/texture/Sprite;Lnet/minecraft/util/math/Direction;Lnet/minecraft/client/render/model/ModelBakeSettings;)Lnet/minecraft/client/render/model/BakedQuad;
      intermediary method_67932 Lnet/minecraft/class_10802;method_67932(Lnet/minecraft/class_785;Lnet/minecraft/class_783;Lnet/minecraft/class_1058;Lnet/minecraft/class_2350;Lnet/minecraft/class_3665;)Lnet/minecraft/class_777;
      official a Lgzh;a(Lgyv;Lgyw;Lhrr;Ljh;Lhuh;)Lgyu;
    • 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 object)
      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:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • elements

      public List<ModelElement> elements()
      Returns the value of the elements record component.
      Returns:
      the value of the elements record component