toBakedQuad

BakedQuad toBakedQuad(int spriteIndex, Sprite sprite, boolean isItem)

Generates a new BakedQuad instance with texturecoordinates and colors from the given sprite.

Return

A new baked quad instance with the closest-available appearancesupported by vanilla features. Will retain emissive light maps, for example,but the standard Minecraft renderer will not use them.

Parameters

spriteIndex

The sprite to be used for the quad.Behavior for {@code spriteIndex > 0} is currently undefined.

sprite

MutableQuadView does not serialize spritesso the sprite must be provided by the caller.

isItem

If true, will output vertex normals. Otherwise will outputlightmaps, per Minecraft vertex formats for baked models.

Sources

jvm source
Link copied to clipboard