Class VertexLighterFlat
- java.lang.Object
-
- net.minecraftforge.client.model.pipeline.QuadGatheringTransformer
-
- net.minecraftforge.client.model.pipeline.VertexLighterFlat
-
- All Implemented Interfaces:
IVertexConsumer
- Direct Known Subclasses:
VertexLighterSmoothAo
public class VertexLighterFlat extends QuadGatheringTransformer
-
-
Field Summary
Fields Modifier and Type Field Description protected VertexFormatbaseFormatprotected BlockInfoblockInfoprotected intcolorIndexprivate booleandiffuseprivate static intLIGHTMAP_MAXprivate static intLIGHTMAP_PACKING_FACTORprivate static floatLIGHTMAP_RESCALEprotected intlightmapIndexprotected static VertexFormatElementNORMAL_4Fprotected intnormalIndexprotected MatrixStack.Entryposeprotected intposIndexprivate inttint-
Fields inherited from class net.minecraftforge.client.model.pipeline.QuadGatheringTransformer
dataLength, format, parent, quadData, vertices
-
-
Constructor Summary
Constructors Constructor Description VertexLighterFlat(BlockColors colors)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidprocessQuad()voidresetBlockInfo()voidsetApplyDiffuseLighting(boolean diffuse)voidsetBlockPos(BlockPos blockPos)voidsetParent(IVertexConsumer parent)voidsetQuadCulled()voidsetQuadOrientation(Direction orientation)voidsetQuadTint(int tint)voidsetState(BlockState state)voidsetTexture(TextureAtlasSprite texture)voidsetTransform(MatrixStack.Entry pose)voidsetVertexFormat(VertexFormat format)voidsetWorld(IBlockDisplayReader world)voidupdateBlockInfo()protected voidupdateColor(float[] normal, float[] color, float x, float y, float z, float tint, int multiplier)private voidupdateIndices()protected voidupdateLightmap(float[] normal, float[] lightmap, float x, float y, float z)(package private) static VertexFormatwithNormal(VertexFormat format)private static VertexFormatwithNormalUncached(VertexFormat format)-
Methods inherited from class net.minecraftforge.client.model.pipeline.QuadGatheringTransformer
getVertexFormat, put
-
-
-
-
Field Detail
-
NORMAL_4F
protected static final VertexFormatElement NORMAL_4F
-
LIGHTMAP_PACKING_FACTOR
private static final int LIGHTMAP_PACKING_FACTOR
-
LIGHTMAP_MAX
private static final int LIGHTMAP_MAX
- See Also:
- Constant Field Values
-
LIGHTMAP_RESCALE
private static final float LIGHTMAP_RESCALE
-
blockInfo
protected final BlockInfo blockInfo
-
tint
private int tint
-
diffuse
private boolean diffuse
-
posIndex
protected int posIndex
-
normalIndex
protected int normalIndex
-
colorIndex
protected int colorIndex
-
lightmapIndex
protected int lightmapIndex
-
baseFormat
protected VertexFormat baseFormat
-
pose
protected MatrixStack.Entry pose
-
-
Constructor Detail
-
VertexLighterFlat
public VertexLighterFlat(BlockColors colors)
-
-
Method Detail
-
setParent
public void setParent(IVertexConsumer parent)
- Overrides:
setParentin classQuadGatheringTransformer
-
setTransform
public void setTransform(MatrixStack.Entry pose)
-
updateIndices
private void updateIndices()
-
setVertexFormat
public void setVertexFormat(VertexFormat format)
- Overrides:
setVertexFormatin classQuadGatheringTransformer
-
withNormal
static VertexFormat withNormal(VertexFormat format)
-
withNormalUncached
private static VertexFormat withNormalUncached(VertexFormat format)
-
processQuad
protected void processQuad()
- Specified by:
processQuadin classQuadGatheringTransformer
-
updateLightmap
protected void updateLightmap(float[] normal, float[] lightmap, float x, float y, float z)
-
updateColor
protected void updateColor(float[] normal, float[] color, float x, float y, float z, float tint, int multiplier)
-
setQuadTint
public void setQuadTint(int tint)
-
setQuadOrientation
public void setQuadOrientation(Direction orientation)
-
setQuadCulled
public void setQuadCulled()
-
setTexture
public void setTexture(TextureAtlasSprite texture)
-
setApplyDiffuseLighting
public void setApplyDiffuseLighting(boolean diffuse)
-
setWorld
public void setWorld(IBlockDisplayReader world)
-
setState
public void setState(BlockState state)
-
setBlockPos
public void setBlockPos(BlockPos blockPos)
-
resetBlockInfo
public void resetBlockInfo()
-
updateBlockInfo
public void updateBlockInfo()
-
-