public class FaceBakery
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
FaceBakery.Rotation |
Modifier and Type | Field and Description |
---|---|
private static float |
SCALE_ROTATION_22_5 |
private static float |
SCALE_ROTATION_GENERAL |
private static FaceBakery.Rotation |
UV_ROTATION_0 |
private static FaceBakery.Rotation |
UV_ROTATION_270 |
private static FaceBakery.Rotation |
UV_ROTATION_90 |
private static FaceBakery.Rotation |
UV_ROTATION_INVERSE |
private static FaceBakery.Rotation[] |
UV_ROTATIONS |
Constructor and Description |
---|
FaceBakery() |
Modifier and Type | Method and Description |
---|---|
private static void |
addUvRotation(ModelRotation p_188013_0_,
EnumFacing p_188013_1_,
FaceBakery.Rotation p_188013_2_) |
private void |
applyFacing(int[] p_178408_1_,
EnumFacing p_178408_2_) |
private BlockFaceUV |
applyUVLock(BlockFaceUV p_188010_1_,
EnumFacing p_188010_2_,
ModelRotation p_188010_3_) |
private void |
fillVertexData(int[] p_188015_1_,
int p_188015_2_,
EnumFacing p_188015_3_,
BlockFaceUV p_188015_4_,
float[] p_188015_5_,
TextureAtlasSprite p_188015_6_,
ITransformation p_188015_7_,
BlockPartRotation p_188015_8_,
boolean p_188015_9_) |
private void |
fillVertexData(int[] p_188015_1_,
int p_188015_2_,
EnumFacing p_188015_3_,
BlockFaceUV p_188015_4_,
float[] p_188015_5_,
TextureAtlasSprite p_188015_6_,
ModelRotation p_188015_7_,
BlockPartRotation p_188015_8_,
boolean p_188015_9_) |
private float |
getFaceBrightness(EnumFacing facing) |
private int |
getFaceShadeColor(EnumFacing facing) |
static EnumFacing |
getFacingFromVertexData(int[] faceData) |
private static int |
getIndex(ModelRotation p_188014_0_,
EnumFacing p_188014_1_) |
private org.lwjgl.util.vector.Matrix4f |
getMatrixIdentity() |
private float[] |
getPositionsDiv16(org.lwjgl.util.vector.Vector3f pos1,
org.lwjgl.util.vector.Vector3f pos2) |
BakedQuad |
makeBakedQuad(org.lwjgl.util.vector.Vector3f posFrom,
org.lwjgl.util.vector.Vector3f posTo,
BlockPartFace face,
TextureAtlasSprite sprite,
EnumFacing facing,
ITransformation modelRotationIn,
BlockPartRotation partRotation,
boolean uvLocked,
boolean shade) |
BakedQuad |
makeBakedQuad(org.lwjgl.util.vector.Vector3f posFrom,
org.lwjgl.util.vector.Vector3f posTo,
BlockPartFace face,
TextureAtlasSprite sprite,
EnumFacing facing,
ModelRotation modelRotationIn,
BlockPartRotation partRotation,
boolean uvLocked,
boolean shade) |
private int[] |
makeQuadVertexData(BlockFaceUV uvs,
TextureAtlasSprite sprite,
EnumFacing orientation,
float[] p_188012_4_,
ITransformation rotationIn,
BlockPartRotation partRotation,
boolean shade) |
private int[] |
makeQuadVertexData(BlockFaceUV uvs,
TextureAtlasSprite sprite,
EnumFacing orientation,
float[] p_188012_4_,
ModelRotation rotationIn,
BlockPartRotation partRotation,
boolean shade) |
private void |
rotatePart(org.lwjgl.util.vector.Vector3f p_178407_1_,
BlockPartRotation partRotation) |
private void |
rotateScale(org.lwjgl.util.vector.Vector3f position,
org.lwjgl.util.vector.Vector3f rotationOrigin,
org.lwjgl.util.vector.Matrix4f rotationMatrix,
org.lwjgl.util.vector.Vector3f scale) |
int |
rotateVertex(org.lwjgl.util.vector.Vector3f p_188011_1_,
EnumFacing p_188011_2_,
int p_188011_3_,
ITransformation p_188011_4_) |
int |
rotateVertex(org.lwjgl.util.vector.Vector3f p_188011_1_,
EnumFacing p_188011_2_,
int p_188011_3_,
ModelRotation p_188011_4_) |
private void |
storeVertexData(int[] faceData,
int storeIndex,
int vertexIndex,
org.lwjgl.util.vector.Vector3f position,
int shadeColor,
TextureAtlasSprite sprite,
BlockFaceUV faceUV) |
private static final float SCALE_ROTATION_22_5
private static final float SCALE_ROTATION_GENERAL
private static final FaceBakery.Rotation[] UV_ROTATIONS
private static final FaceBakery.Rotation UV_ROTATION_0
private static final FaceBakery.Rotation UV_ROTATION_270
private static final FaceBakery.Rotation UV_ROTATION_INVERSE
private static final FaceBakery.Rotation UV_ROTATION_90
public BakedQuad makeBakedQuad(org.lwjgl.util.vector.Vector3f posFrom, org.lwjgl.util.vector.Vector3f posTo, BlockPartFace face, TextureAtlasSprite sprite, EnumFacing facing, ModelRotation modelRotationIn, @Nullable BlockPartRotation partRotation, boolean uvLocked, boolean shade)
public BakedQuad makeBakedQuad(org.lwjgl.util.vector.Vector3f posFrom, org.lwjgl.util.vector.Vector3f posTo, BlockPartFace face, TextureAtlasSprite sprite, EnumFacing facing, ITransformation modelRotationIn, BlockPartRotation partRotation, boolean uvLocked, boolean shade)
private BlockFaceUV applyUVLock(BlockFaceUV p_188010_1_, EnumFacing p_188010_2_, ModelRotation p_188010_3_)
private int[] makeQuadVertexData(BlockFaceUV uvs, TextureAtlasSprite sprite, EnumFacing orientation, float[] p_188012_4_, ModelRotation rotationIn, @Nullable BlockPartRotation partRotation, boolean shade)
private int[] makeQuadVertexData(BlockFaceUV uvs, TextureAtlasSprite sprite, EnumFacing orientation, float[] p_188012_4_, ITransformation rotationIn, BlockPartRotation partRotation, boolean shade)
private int getFaceShadeColor(EnumFacing facing)
private float getFaceBrightness(EnumFacing facing)
private float[] getPositionsDiv16(org.lwjgl.util.vector.Vector3f pos1, org.lwjgl.util.vector.Vector3f pos2)
private void fillVertexData(int[] p_188015_1_, int p_188015_2_, EnumFacing p_188015_3_, BlockFaceUV p_188015_4_, float[] p_188015_5_, TextureAtlasSprite p_188015_6_, ModelRotation p_188015_7_, @Nullable BlockPartRotation p_188015_8_, boolean p_188015_9_)
private void fillVertexData(int[] p_188015_1_, int p_188015_2_, EnumFacing p_188015_3_, BlockFaceUV p_188015_4_, float[] p_188015_5_, TextureAtlasSprite p_188015_6_, ITransformation p_188015_7_, BlockPartRotation p_188015_8_, boolean p_188015_9_)
private void storeVertexData(int[] faceData, int storeIndex, int vertexIndex, org.lwjgl.util.vector.Vector3f position, int shadeColor, TextureAtlasSprite sprite, BlockFaceUV faceUV)
private void rotatePart(org.lwjgl.util.vector.Vector3f p_178407_1_, @Nullable BlockPartRotation partRotation)
public int rotateVertex(org.lwjgl.util.vector.Vector3f p_188011_1_, EnumFacing p_188011_2_, int p_188011_3_, ModelRotation p_188011_4_)
public int rotateVertex(org.lwjgl.util.vector.Vector3f p_188011_1_, EnumFacing p_188011_2_, int p_188011_3_, ITransformation p_188011_4_)
private void rotateScale(org.lwjgl.util.vector.Vector3f position, org.lwjgl.util.vector.Vector3f rotationOrigin, org.lwjgl.util.vector.Matrix4f rotationMatrix, org.lwjgl.util.vector.Vector3f scale)
private org.lwjgl.util.vector.Matrix4f getMatrixIdentity()
public static EnumFacing getFacingFromVertexData(int[] faceData)
private void applyFacing(int[] p_178408_1_, EnumFacing p_178408_2_)
private static void addUvRotation(ModelRotation p_188013_0_, EnumFacing p_188013_1_, FaceBakery.Rotation p_188013_2_)
private static int getIndex(ModelRotation p_188014_0_, EnumFacing p_188014_1_)