16 lines
708 B
Java
16 lines
708 B
Java
package net.minecraft.client.renderer.block.model;
|
|
|
|
import net.fabricmc.api.EnvType;
|
|
import net.fabricmc.api.Environment;
|
|
import net.minecraft.client.renderer.texture.TextureAtlasSprite;
|
|
import net.minecraft.core.Direction;
|
|
|
|
/**
|
|
* @param vertices Joined 4 vertex records, each stores packed data according to the VertexFormat of the quad. Vanilla minecraft uses DefaultVertexFormats.BLOCK, Forge uses (usually) ITEM, use BakedQuad.getFormat() to get the correct format.
|
|
*/
|
|
@Environment(EnvType.CLIENT)
|
|
public record BakedQuad(int[] vertices, int tintIndex, Direction direction, TextureAtlasSprite sprite, boolean shade, int lightEmission) {
|
|
public boolean isTinted() {
|
|
return this.tintIndex != -1;
|
|
}
|
|
}
|