RunningOnDifferentThreadException.java

net.minecraft.server.RunningOnDifferentThreadException

信息

  • 全限定名:net.minecraft.server.RunningOnDifferentThreadException
  • 类型:public final class
  • 包:net.minecraft.server
  • 源码路径:src/main/java/net/minecraft/server/RunningOnDifferentThreadException.java
  • 起始行号:L3
  • 继承:RuntimeException
  • 职责:

    TODO

字段/常量

  • RUNNING_ON_DIFFERENT_THREAD
    • 类型: RunningOnDifferentThreadException
    • 修饰符: public static final
    • 源码定位: L4
    • 说明:

      TODO

内部类/嵌套类型

构造器

private RunningOnDifferentThreadException() @ L6

  • 构造器名:RunningOnDifferentThreadException
  • 源码定位:L6
  • 修饰符:private

参数:

说明:

TODO

方法

下面的方法块按源码顺序生成。

public synchronized Throwable fillInStackTrace() @ L10

  • 方法名:fillInStackTrace
  • 源码定位:L10
  • 返回类型:Throwable
  • 修饰符:public synchronized

参数:

说明:

TODO

代码

public final class RunningOnDifferentThreadException extends RuntimeException {
    public static final RunningOnDifferentThreadException RUNNING_ON_DIFFERENT_THREAD = new RunningOnDifferentThreadException();
 
    private RunningOnDifferentThreadException() {
        this.setStackTrace(new StackTraceElement[0]);
    }
 
    @Override
    public synchronized Throwable fillInStackTrace() {
        this.setStackTrace(new StackTraceElement[0]);
        return this;
    }
}

引用的其他类