GameTestAssertException .java

net.minecraft.gametest.framework.GameTestAssertException (class, 25 lines): members: getMessage, getDescription, message, tick. strings: "test.error.tick".

net.minecraft.gametest.frameworkclass25 linescommonextends GameTestException592 B

API Surface (2)

Component getDescription()
String getMessage()

Fields & Constants (2)

message
tick

String literals (1)

"test.error.tick"

Code Graph: Dependencies (2)

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

Full Source

GameTestAssertException.java25 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.gametest.framework;
2
3
import net.minecraft.network.chat.Component;
4
5
public class GameTestAssertException extends GameTestException {
6
	protected final Component message;
7
	protected final int tick;
8
9
	public GameTestAssertException(final Component message, final int tick) {
10
		super(message.getString());
11
		this.message = message;
12
		this.tick = tick;
13
	}
14
15
	@Override
16
	public Component getDescription() {
17
		return Component.translatable("test.error.tick", this.message, this.tick);
18
	}
19
20
	@Override
21
	public String getMessage() {
22
		return this.getDescription().getString();
23
	}
24
}
25

Decompiled Minecraft 26.3 source of GameTestAssertException (net/minecraft/gametest/framework/GameTestAssertException.java) with Mojang official mappings, stored verbatim on the site.