MaterialFinder

public interface MaterialFinder

Finds standard RenderMaterial instances used to communicate quad rendering characteristics to a RenderContext.

Must be obtained via materialFinder.

Functions

blendMode
Link copied to clipboard
abstract MaterialFinder blendMode(int spriteIndex, BlendMode blendMode)
Defines how sprite pixels will be blended with the scene.
MaterialFinder blendMode(int spriteIndex, RenderLayer renderLayer)
Defines how sprite pixels will be blended with the scene.Accepts {link @BlockRenderLayer} values and blending behaviorwill emulate the way that Minecraft renders those instances.
clear
Link copied to clipboard
abstract MaterialFinder clear()
Resets this instance to default values.
disableAo
Link copied to clipboard
abstract MaterialFinder disableAo(int spriteIndex, boolean disable)
Vertex color(s) will be modified for ambient occlusion unless disabled.
disableColorIndex
Link copied to clipboard
abstract MaterialFinder disableColorIndex(int spriteIndex, boolean disable)
Vertex color(s) will be modified for quad color index unless disabled.
disableDiffuse
Link copied to clipboard
abstract MaterialFinder disableDiffuse(int spriteIndex, boolean disable)
Vertex color(s) will be modified for diffuse shading unless disabled.
emissive
Link copied to clipboard
abstract MaterialFinder emissive(int spriteIndex, boolean isEmissive)
When true, sprite texture and color will be rendered at full brightness.
find
Link copied to clipboard
abstract RenderMaterial find()
Returns the standard material encoding allof the current settings in this finder.
spriteDepth
Link copied to clipboard
abstract MaterialFinder spriteDepth(int depth)
Reserved for future use.

Sources

jvm source
Link copied to clipboard