EmptyProfileResults.java

net.minecraft.util.profiling.EmptyProfileResults

信息

  • 全限定名:net.minecraft.util.profiling.EmptyProfileResults
  • 类型:public class
  • 包:net.minecraft.util.profiling
  • 源码路径:src/main/java/net/minecraft/util/profiling/EmptyProfileResults.java
  • 起始行号:L7
  • 实现:ProfileResults
  • 职责:

    TODO

字段/常量

  • EMPTY
    • 类型: EmptyProfileResults
    • 修饰符: public static final
    • 源码定位: L8
    • 说明:

      TODO

内部类/嵌套类型

构造器

private EmptyProfileResults() @ L10

  • 构造器名:EmptyProfileResults
  • 源码定位:L10
  • 修饰符:private

参数:

说明:

TODO

方法

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

public List<ResultField> getTimes(String path) @ L13

  • 方法名:getTimes
  • 源码定位:L13
  • 返回类型:List
  • 修饰符:public

参数:

  • path: String

说明:

TODO

public boolean saveResults(Path file) @ L18

  • 方法名:saveResults
  • 源码定位:L18
  • 返回类型:boolean
  • 修饰符:public

参数:

  • file: Path

说明:

TODO

public long getStartTimeNano() @ L23

  • 方法名:getStartTimeNano
  • 源码定位:L23
  • 返回类型:long
  • 修饰符:public

参数:

说明:

TODO

public int getStartTimeTicks() @ L28

  • 方法名:getStartTimeTicks
  • 源码定位:L28
  • 返回类型:int
  • 修饰符:public

参数:

说明:

TODO

public long getEndTimeNano() @ L33

  • 方法名:getEndTimeNano
  • 源码定位:L33
  • 返回类型:long
  • 修饰符:public

参数:

说明:

TODO

public int getEndTimeTicks() @ L38

  • 方法名:getEndTimeTicks
  • 源码定位:L38
  • 返回类型:int
  • 修饰符:public

参数:

说明:

TODO

public String getProfilerResults() @ L43

  • 方法名:getProfilerResults
  • 源码定位:L43
  • 返回类型:String
  • 修饰符:public

参数:

说明:

TODO

代码

public class EmptyProfileResults implements ProfileResults {
    public static final EmptyProfileResults EMPTY = new EmptyProfileResults();
 
    private EmptyProfileResults() {
    }
 
    @Override
    public List<ResultField> getTimes(String path) {
        return Collections.emptyList();
    }
 
    @Override
    public boolean saveResults(Path file) {
        return false;
    }
 
    @Override
    public long getStartTimeNano() {
        return 0L;
    }
 
    @Override
    public int getStartTimeTicks() {
        return 0;
    }
 
    @Override
    public long getEndTimeNano() {
        return 0L;
    }
 
    @Override
    public int getEndTimeTicks() {
        return 0;
    }
 
    @Override
    public String getProfilerResults() {
        return "";
    }
}

引用的其他类