Package net.minecraftforge.client.model
Class QuadTransformers
java.lang.Object
net.minecraftforge.client.model.QuadTransformers
A collection of 
IQuadTransformer implementations.- See Also:
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final IQuadTransformer[]private static final IQuadTransformer
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic IQuadTransformerapplying(Transformation transform) Returns a newBakedQuadtransformer that applies the specifiedTransformation.static IQuadTransformerapplyingColor(int color) static IQuadTransformerapplyingColor(int red, int green, int blue) This method supplies a default alpha value of 255 (no transparency)static IQuadTransformerapplyingColor(int alpha, int red, int green, int blue) static IQuadTransformerapplyingLightmap(int packedLight) static IQuadTransformerapplyingLightmap(int blockLight, int skyLight) static IQuadTransformerempty()Returns aBakedQuadtransformer that does nothing.static IQuadTransformersettingEmissivity(int emissivity) static IQuadTransformerstatic inttoABGR(int argb) Converts an ARGB color to an ABGR color, as the commonly used color format is not the format colors end up packed into.
- 
Field Details- 
EMPTY
- 
EMISSIVE_TRANSFORMERS
 
- 
- 
Constructor Details- 
QuadTransformersprivate QuadTransformers()
 
- 
- 
Method Details- 
emptyReturns aBakedQuadtransformer that does nothing.- Returns:
- a BakedQuadtransformer that does nothing
 
- 
applyingReturns a newBakedQuadtransformer that applies the specifiedTransformation.- Returns:
- a new BakedQuadtransformer that applies the specifiedTransformation
 
- 
applyingLightmap- Returns:
- A new BakedQuadtransformer that applies the specified packed light value.
 
- 
applyingLightmap- Returns:
- A new BakedQuadtransformer that applies the specified block and sky light values.
 
- 
settingEmissivity- Returns:
- A BakedQuadtransformer that sets the lightmap to the given emissivity (0-15)
 
- 
settingMaxEmissivity- Returns:
- A BakedQuadtransformer that sets the lightmap to its max value
 
- 
applyingColor- Parameters:
- color- The color in ARGB format.
- Returns:
- A BakedQuadtransformer that sets the color to the specified value.
 
- 
applyingColorThis method supplies a default alpha value of 255 (no transparency)- Parameters:
- red- The red value (0-255)
- green- The green value (0-255)
- blue- The blue value (0-255)
- Returns:
- A BakedQuadtransformer that sets the color to the specified value.
 
- 
applyingColor- Parameters:
- alpha- The alpha value (0-255)
- red- The red value (0-255)
- green- The green value (0-255)
- blue- The blue value (0-255)
- Returns:
- A BakedQuadtransformer that sets the color to the specified value.
 
- 
toABGRpublic static int toABGR(int argb) Converts an ARGB color to an ABGR color, as the commonly used color format is not the format colors end up packed into. This function doubles as its own inverse.- Parameters:
- color- ARGB color
- Returns:
- ABGR color
 
 
-