Class BakedQuadFactory

java.lang.Object
net.minecraft.client.render.model.BakedQuadFactory

@Environment(CLIENT)
public class BakedQuadFactory
extends Object
Mappings:
Namespace Name
official eir
intermediary net/minecraft/class_796
named net/minecraft/client/render/model/BakedQuadFactory
  • Field Details

    • MIN_SCALE

      private static final float MIN_SCALE
      Mappings:
      Namespace Name Mixin selector
      official a Leir;a:F
      intermediary field_4260 Lnet/minecraft/class_796;field_4260:F
      named MIN_SCALE Lnet/minecraft/client/render/model/BakedQuadFactory;MIN_SCALE:F
    • MAX_SCALE

      private static final float MAX_SCALE
      Mappings:
      Namespace Name Mixin selector
      official b Leir;b:F
      intermediary field_4259 Lnet/minecraft/class_796;field_4259:F
      named MAX_SCALE Lnet/minecraft/client/render/model/BakedQuadFactory;MAX_SCALE:F
  • Constructor Details

    • BakedQuadFactory

      public BakedQuadFactory()
  • Method Details

    • bake

      public BakedQuad bake​(Vec3f from, Vec3f to, ModelElementFace face, Sprite texture, Direction side, ModelBakeSettings settings, @Nullable ModelRotation rotation, boolean shade, Identifier modelId)
      Mappings:
      Namespace Name Mixin selector
      official a Leir;a(Lg;Lg;Leim;Leru;Lgc;Letn;Lein;ZLwb;)Leik;
      intermediary method_3468 Lnet/minecraft/class_796;method_3468(Lnet/minecraft/class_1160;Lnet/minecraft/class_1160;Lnet/minecraft/class_783;Lnet/minecraft/class_1058;Lnet/minecraft/class_2350;Lnet/minecraft/class_3665;Lnet/minecraft/class_789;ZLnet/minecraft/class_2960;)Lnet/minecraft/class_777;
      named bake Lnet/minecraft/client/render/model/BakedQuadFactory;bake(Lnet/minecraft/util/math/Vec3f;Lnet/minecraft/util/math/Vec3f;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/json/ModelRotation;ZLnet/minecraft/util/Identifier;)Lnet/minecraft/client/render/model/BakedQuad;
    • uvLock

      public static ModelElementTexture uvLock​(ModelElementTexture texture, Direction orientation, AffineTransformation rotation, Identifier modelId)
      Mappings:
      Namespace Name Mixin selector
      official a Leir;a(Leio;Lgc;Lf;Lwb;)Leio;
      intermediary method_3454 Lnet/minecraft/class_796;method_3454(Lnet/minecraft/class_787;Lnet/minecraft/class_2350;Lnet/minecraft/class_4590;Lnet/minecraft/class_2960;)Lnet/minecraft/class_787;
      named uvLock Lnet/minecraft/client/render/model/BakedQuadFactory;uvLock(Lnet/minecraft/client/render/model/json/ModelElementTexture;Lnet/minecraft/util/math/Direction;Lnet/minecraft/client/util/math/AffineTransformation;Lnet/minecraft/util/Identifier;)Lnet/minecraft/client/render/model/json/ModelElementTexture;
    • packVertexData

      private int[] packVertexData​(ModelElementTexture texture, Sprite sprite, Direction direction, float[] positionMatrix, AffineTransformation orientation, @Nullable ModelRotation rotation, boolean shaded)
      Mappings:
      Namespace Name Mixin selector
      official a Leir;a(Leio;Leru;Lgc;[FLf;Lein;Z)[I
      intermediary method_3458 Lnet/minecraft/class_796;method_3458(Lnet/minecraft/class_787;Lnet/minecraft/class_1058;Lnet/minecraft/class_2350;[FLnet/minecraft/class_4590;Lnet/minecraft/class_789;Z)[I
      named packVertexData Lnet/minecraft/client/render/model/BakedQuadFactory;packVertexData(Lnet/minecraft/client/render/model/json/ModelElementTexture;Lnet/minecraft/client/texture/Sprite;Lnet/minecraft/util/math/Direction;[FLnet/minecraft/client/util/math/AffineTransformation;Lnet/minecraft/client/render/model/json/ModelRotation;Z)[I
    • getPositionMatrix

      private float[] getPositionMatrix​(Vec3f from, Vec3f to)
      Mappings:
      Namespace Name Mixin selector
      official a Leir;a(Lg;Lg;)[F
      intermediary method_3459 Lnet/minecraft/class_796;method_3459(Lnet/minecraft/class_1160;Lnet/minecraft/class_1160;)[F
      named getPositionMatrix Lnet/minecraft/client/render/model/BakedQuadFactory;getPositionMatrix(Lnet/minecraft/util/math/Vec3f;Lnet/minecraft/util/math/Vec3f;)[F
    • packVertexData

      private void packVertexData​(int[] vertices, int cornerIndex, Direction direction, ModelElementTexture texture, float[] positionMatrix, Sprite sprite, AffineTransformation orientation, @Nullable ModelRotation rotation, boolean shaded)
      Mappings:
      Namespace Name Mixin selector
      official a Leir;a([IILgc;Leio;[FLeru;Lf;Lein;Z)V
      intermediary method_3461 Lnet/minecraft/class_796;method_3461([IILnet/minecraft/class_2350;Lnet/minecraft/class_787;[FLnet/minecraft/class_1058;Lnet/minecraft/class_4590;Lnet/minecraft/class_789;Z)V
      named packVertexData Lnet/minecraft/client/render/model/BakedQuadFactory;packVertexData([IILnet/minecraft/util/math/Direction;Lnet/minecraft/client/render/model/json/ModelElementTexture;[FLnet/minecraft/client/texture/Sprite;Lnet/minecraft/client/util/math/AffineTransformation;Lnet/minecraft/client/render/model/json/ModelRotation;Z)V
    • packVertexData

      private void packVertexData​(int[] vertices, int cornerIndex, Vec3f position, Sprite sprite, ModelElementTexture modelElementTexture)
      Mappings:
      Namespace Name Mixin selector
      official a Leir;a([IILg;Leru;Leio;)V
      intermediary method_3460 Lnet/minecraft/class_796;method_3460([IILnet/minecraft/class_1160;Lnet/minecraft/class_1058;Lnet/minecraft/class_787;)V
      named packVertexData Lnet/minecraft/client/render/model/BakedQuadFactory;packVertexData([IILnet/minecraft/util/math/Vec3f;Lnet/minecraft/client/texture/Sprite;Lnet/minecraft/client/render/model/json/ModelElementTexture;)V
    • rotateVertex

      private void rotateVertex​(Vec3f vector, @Nullable ModelRotation rotation)
      Mappings:
      Namespace Name Mixin selector
      official a Leir;a(Lg;Lein;)V
      intermediary method_3463 Lnet/minecraft/class_796;method_3463(Lnet/minecraft/class_1160;Lnet/minecraft/class_789;)V
      named rotateVertex Lnet/minecraft/client/render/model/BakedQuadFactory;rotateVertex(Lnet/minecraft/util/math/Vec3f;Lnet/minecraft/client/render/model/json/ModelRotation;)V
    • transformVertex

      public void transformVertex​(Vec3f vertex, AffineTransformation transformation)
      Mappings:
      Namespace Name Mixin selector
      official a Leir;a(Lg;Lf;)V
      intermediary method_3455 Lnet/minecraft/class_796;method_3455(Lnet/minecraft/class_1160;Lnet/minecraft/class_4590;)V
      named transformVertex Lnet/minecraft/client/render/model/BakedQuadFactory;transformVertex(Lnet/minecraft/util/math/Vec3f;Lnet/minecraft/client/util/math/AffineTransformation;)V
    • transformVertex

      private void transformVertex​(Vec3f vertex, Vec3f origin, Matrix4f transformationMatrix, Vec3f scale)
      Mappings:
      Namespace Name Mixin selector
      official a Leir;a(Lg;Lg;Lb;Lg;)V
      intermediary method_3464 Lnet/minecraft/class_796;method_3464(Lnet/minecraft/class_1160;Lnet/minecraft/class_1160;Lnet/minecraft/class_1159;Lnet/minecraft/class_1160;)V
      named transformVertex Lnet/minecraft/client/render/model/BakedQuadFactory;transformVertex(Lnet/minecraft/util/math/Vec3f;Lnet/minecraft/util/math/Vec3f;Lnet/minecraft/util/math/Matrix4f;Lnet/minecraft/util/math/Vec3f;)V
    • decodeDirection

      public static Direction decodeDirection​(int[] rotationMatrix)
      Mappings:
      Namespace Name Mixin selector
      official a Leir;a([I)Lgc;
      intermediary method_3467 Lnet/minecraft/class_796;method_3467([I)Lnet/minecraft/class_2350;
      named decodeDirection Lnet/minecraft/client/render/model/BakedQuadFactory;decodeDirection([I)Lnet/minecraft/util/math/Direction;
    • encodeDirection

      private void encodeDirection​(int[] rotationMatrix, Direction direction)
      Mappings:
      Namespace Name Mixin selector
      official a Leir;a([ILgc;)V
      intermediary method_3462 Lnet/minecraft/class_796;method_3462([ILnet/minecraft/class_2350;)V
      named encodeDirection Lnet/minecraft/client/render/model/BakedQuadFactory;encodeDirection([ILnet/minecraft/util/math/Direction;)V