public BakedQuad makeBakedQuad(Vector3f posFrom, Vector3f posTo, BlockPartFace face, TextureAtlasSprite sprite, EnumFacing facing, net.minecraftforge.common.model.ITransformation modelRotationIn, BlockPartRotation partRotation, boolean uvLocked, int color)
{
BlockFaceUV blockfaceuv = face.blockFaceUV;
if (uvLocked)
{
blockfaceuv = net.minecraftforge.client.ForgeHooksClient.applyUVLock(face.blockFaceUV, facing, modelRotationIn);
}
int[] aint = this.makeQuadVertexData(blockfaceuv, sprite, facing, this.getPositionsDiv16(posFrom, posTo), modelRotationIn, partRotation, color);
EnumFacing enumfacing = getFacingFromVertexData(aint);
if (partRotation == null)
{
this.applyFacing(aint, enumfacing);
}
net.minecraftforge.client.ForgeHooksClient.fillNormal(aint, enumfacing);
return new BakedQuad(aint, face.tintIndex, enumfacing, sprite, color !=-1 ? true : false, net.minecraft.client.renderer.vertex.DefaultVertexFormats.ITEM);
}
CustomModelUtil.java 文件源码
java
阅读 26
收藏 0
点赞 0
评论 0
项目:CrystalMod
作者:
评论列表
文章目录