Class QuadTransformers
java.lang.Object
net.neoforged.neoforge.client.model.QuadTransformers
A collection of
IQuadTransformer
implementations.- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final IQuadTransformer[]
private static final IQuadTransformer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic IQuadTransformer
applying
(Transformation transform) Returns a newBakedQuad
transformer that applies the specifiedTransformation
.static IQuadTransformer
applyingColor
(int color) static IQuadTransformer
applyingColor
(int red, int green, int blue) This method supplies a default alpha value of 255 (no transparency)static IQuadTransformer
applyingColor
(int alpha, int red, int green, int blue) static IQuadTransformer
applyingLightmap
(int packedLight) static IQuadTransformer
applyingLightmap
(int blockLight, int skyLight) static IQuadTransformer
empty()
Returns aBakedQuad
transformer that does nothing.static IQuadTransformer
settingEmissivity
(int emissivity) static IQuadTransformer
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.
-
Field Details
-
EMPTY
-
EMISSIVE_TRANSFORMERS
-
-
Constructor Details
-
QuadTransformers
private QuadTransformers()
-
-
Method Details
-
empty
Returns aBakedQuad
transformer that does nothing.- Returns:
- a
BakedQuad
transformer that does nothing
-
applying
Returns a newBakedQuad
transformer that applies the specifiedTransformation
.- Returns:
- a new
BakedQuad
transformer that applies the specifiedTransformation
-
applyingLightmap
- Returns:
- A new
BakedQuad
transformer that applies the specified packed light value.
-
applyingLightmap
- Returns:
- A new
BakedQuad
transformer that applies the specified block and sky light values.
-
settingEmissivity
- Returns:
- A
BakedQuad
transformer that sets the lightmap to the given emissivity (0-15)
-
settingMaxEmissivity
- Returns:
- A
BakedQuad
transformer that sets the lightmap to its max value
-
applyingColor
- Parameters:
color
- The color in ARGB format.- Returns:
- A
BakedQuad
transformer that sets the color to the specified value.
-
applyingColor
This 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
BakedQuad
transformer 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
BakedQuad
transformer that sets the color to the specified value.
-
toABGR
public 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
-