RunningOnDifferentThreadException .java

net.minecraft.server.RunningOnDifferentThreadException (class, 16 lines): extends RuntimeException. members: RUNNING_ON_DIFFERENT_THREAD, fillInStackTrace.

net.minecraft.serverclass16 linesserverextends RuntimeException468 B

API Surface (1)

Throwable fillInStackTrace()

Fields & Constants (1)

RUNNING_ON_DIFFERENT_THREAD

Full Source

RunningOnDifferentThreadException.java16 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.server;
2
3
public final class RunningOnDifferentThreadException extends RuntimeException {
4
	public static final RunningOnDifferentThreadException RUNNING_ON_DIFFERENT_THREAD = new RunningOnDifferentThreadException();
5
6
	private RunningOnDifferentThreadException() {
7
		this.setStackTrace(new StackTraceElement[0]);
8
	}
9
10
	@Override
11
	public synchronized Throwable fillInStackTrace() {
12
		this.setStackTrace(new StackTraceElement[0]);
13
		return this;
14
	}
15
}
16

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