TextRenderable .java

net.minecraft.client.gui.font.TextRenderable (interface): members: Styled, guiPipeline, textureView, bottom, top, render, right, renderType, left.

net.minecraft.client.gui.fontinterface53 linesclient1.1 KB

API Surface (0)

No public/protected methods detected (fields or constants only).

Fields & Constants (1)

TextRenderable

Code Graph: Dependencies (6)

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

Full Source

TextRenderable.java53 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.client.gui.font;
2
3
import com.mojang.blaze3d.vertex.VertexConsumer;
4
import com.mojang.renderpearl.api.pipeline.RenderPipeline;
5
import com.mojang.renderpearl.api.textures.GpuTextureView;
6
import net.fabricmc.api.EnvType;
7
import net.fabricmc.api.Environment;
8
import net.minecraft.client.gui.Font;
9
import net.minecraft.client.renderer.rendertype.RenderType;
10
import org.joml.Matrix4fc;
11
12
@Environment(EnvType.CLIENT)
13
public interface TextRenderable {
14
	void render(Matrix4fc pose, VertexConsumer buffer, int packedLightCoords, boolean flat);
15
16
	RenderType renderType(Font.DisplayMode displayMode);
17
18
	GpuTextureView textureView();
19
20
	RenderPipeline guiPipeline();
21
22
	float left();
23
24
	float top();
25
26
	float right();
27
28
	float bottom();
29
30
	@Environment(EnvType.CLIENT)
31
	interface Styled extends TextRenderable, ActiveArea {
32
		@Override
33
		default float activeLeft() {
34
			return this.left();
35
		}
36
37
		@Override
38
		default float activeTop() {
39
			return this.top();
40
		}
41
42
		@Override
43
		default float activeRight() {
44
			return this.right();
45
		}
46
47
		@Override
48
		default float activeBottom() {
49
			return this.bottom();
50
		}
51
	}
52
}
53

Decompiled Minecraft 26.3 source of TextRenderable (net/minecraft/client/gui/font/TextRenderable.java) with Mojang official mappings, stored verbatim on the site.