VertexFormatElement .java

com.mojang.renderpearl.api.vertex.VertexFormatElement (record, 15 lines): members: offset, format, name. imports: GpuFormat, EnvType, Environment.

com.mojang.renderpearl.api.vertexrecord15 linesclient430 B

API Surface (2)

record VertexFormatElement(String name, int offset, GpuFormat format)
String toString()

Same Package (2)

Code Graph: Dependencies (1)

Edges (calls / imports / inherits / references) resolved by graphify from the AST. Every chip opens the class source.

Full Source

VertexFormatElement.java15 lines · Minecraft 26.3 · verbatim
1
package com.mojang.renderpearl.api.vertex;
2
3
import com.mojang.renderpearl.api.GpuFormat;
4
import java.util.Locale;
5
import net.fabricmc.api.EnvType;
6
import net.fabricmc.api.Environment;
7
8
@Environment(EnvType.CLIENT)
9
public record VertexFormatElement(String name, int offset, GpuFormat format) {
10
	@Override
11
	public String toString() {
12
		return String.format(Locale.ROOT, "%s %s offset:%d", this.name, this.format, this.offset);
13
	}
14
}
15

Decompiled Minecraft 26.3 source of VertexFormatElement (com/mojang/renderpearl/api/vertex/VertexFormatElement.java) with Mojang official mappings, stored verbatim on the site.