EmptyArea .java

net.minecraft.client.gui.font.EmptyArea (record, 32 lines): members: advance, ascent, height, style, DEFAULT_ASCENT, activeBottom, activeRight, activeLeft.

net.minecraft.client.gui.fontrecord32 linesclient711 B

Implements

API Surface (4)

float activeLeft()
float activeTop()
float activeRight()
float activeBottom()

Fields & Constants (2)

DEFAULT_HEIGHT
DEFAULT_ASCENT

Code Graph: Dependencies (2)

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

Full Source

EmptyArea.java32 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.client.gui.font;
2
3
import net.fabricmc.api.EnvType;
4
import net.fabricmc.api.Environment;
5
import net.minecraft.network.chat.Style;
6
7
@Environment(EnvType.CLIENT)
8
public record EmptyArea(float x, float y, float advance, float ascent, float height, Style style) implements ActiveArea {
9
	public static final float DEFAULT_HEIGHT = 9.0F;
10
	public static final float DEFAULT_ASCENT = 7.0F;
11
12
	@Override
13
	public float activeLeft() {
14
		return this.x;
15
	}
16
17
	@Override
18
	public float activeTop() {
19
		return this.y + 7.0F - this.ascent;
20
	}
21
22
	@Override
23
	public float activeRight() {
24
		return this.x + this.advance;
25
	}
26
27
	@Override
28
	public float activeBottom() {
29
		return this.activeTop() + this.height;
30
	}
31
}
32

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