ThrowingComponent .java

net.minecraft.network.chat.ThrowingComponent (class, 20 lines): extends Exception. members: getComponent, component.

net.minecraft.network.chatclass20 linescommonextends Exception462 B

API Surface (1)

Component getComponent()

Fields & Constants (1)

component

Code Graph: Dependencies (1)

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

Full Source

ThrowingComponent.java20 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.network.chat;
2
3
public class ThrowingComponent extends Exception {
4
	private final Component component;
5
6
	public ThrowingComponent(final Component component) {
7
		super(component.getString());
8
		this.component = component;
9
	}
10
11
	public ThrowingComponent(final Component component, final Throwable cause) {
12
		super(component.getString(), cause);
13
		this.component = component;
14
	}
15
16
	public Component getComponent() {
17
		return this.component;
18
	}
19
}
20

Decompiled Minecraft 26.3 source of ThrowingComponent (net/minecraft/network/chat/ThrowingComponent.java) with Mojang official mappings, stored verbatim on the site.