DebugScreenEntries.java

net.minecraft.client.gui.components.debug.DebugScreenEntries

信息

  • 全限定名:net.minecraft.client.gui.components.debug.DebugScreenEntries
  • 类型:public class
  • 包:net.minecraft.client.gui.components.debug
  • 源码路径:src/main/java/net/minecraft/client/gui/components/debug/DebugScreenEntries.java
  • 起始行号:L11
  • 职责:

    TODO

字段/常量

  • ENTRIES_BY_ID

    • 类型: Map<Identifier,DebugScreenEntry>
    • 修饰符: private static final
    • 源码定位: L12
    • 说明:

      TODO

  • GAME_VERSION

    • 类型: Identifier
    • 修饰符: public static final
    • 源码定位: L13
    • 说明:

      TODO

  • FPS

    • 类型: Identifier
    • 修饰符: public static final
    • 源码定位: L14
    • 说明:

      TODO

  • TPS

    • 类型: Identifier
    • 修饰符: public static final
    • 源码定位: L15
    • 说明:

      TODO

  • MEMORY

    • 类型: Identifier
    • 修饰符: public static final
    • 源码定位: L16
    • 说明:

      TODO

  • DETAILED_MEMORY

    • 类型: Identifier
    • 修饰符: public static final
    • 源码定位: L17
    • 说明:

      TODO

  • SYSTEM_SPECS

    • 类型: Identifier
    • 修饰符: public static final
    • 源码定位: L18
    • 说明:

      TODO

  • LOOKING_AT_BLOCK_STATE

    • 类型: Identifier
    • 修饰符: public static final
    • 源码定位: L19
    • 说明:

      TODO

  • LOOKING_AT_BLOCK_TAGS

    • 类型: Identifier
    • 修饰符: public static final
    • 源码定位: L20
    • 说明:

      TODO

  • LOOKING_AT_FLUID_STATE

    • 类型: Identifier
    • 修饰符: public static final
    • 源码定位: L21
    • 说明:

      TODO

  • LOOKING_AT_FLUID_TAGS

    • 类型: Identifier
    • 修饰符: public static final
    • 源码定位: L22
    • 说明:

      TODO

  • LOOKING_AT_ENTITY

    • 类型: Identifier
    • 修饰符: public static final
    • 源码定位: L23
    • 说明:

      TODO

  • LOOKING_AT_ENTITY_TAGS

    • 类型: Identifier
    • 修饰符: public static final
    • 源码定位: L24
    • 说明:

      TODO

  • CHUNK_RENDER_STATS

    • 类型: Identifier
    • 修饰符: public static final
    • 源码定位: L25
    • 说明:

      TODO

  • CHUNK_GENERATION_STATS

    • 类型: Identifier
    • 修饰符: public static final
    • 源码定位: L26
    • 说明:

      TODO

  • ENTITY_RENDER_STATS

    • 类型: Identifier
    • 修饰符: public static final
    • 源码定位: L27
    • 说明:

      TODO

  • PARTICLE_RENDER_STATS

    • 类型: Identifier
    • 修饰符: public static final
    • 源码定位: L28
    • 说明:

      TODO

  • CHUNK_SOURCE_STATS

    • 类型: Identifier
    • 修饰符: public static final
    • 源码定位: L29
    • 说明:

      TODO

  • PLAYER_POSITION

    • 类型: Identifier
    • 修饰符: public static final
    • 源码定位: L30
    • 说明:

      TODO

  • PLAYER_SECTION_POSITION

    • 类型: Identifier
    • 修饰符: public static final
    • 源码定位: L31
    • 说明:

      TODO

  • LIGHT_LEVELS

    • 类型: Identifier
    • 修饰符: public static final
    • 源码定位: L32
    • 说明:

      TODO

  • HEIGHTMAP

    • 类型: Identifier
    • 修饰符: public static final
    • 源码定位: L33
    • 说明:

      TODO

  • BIOME

    • 类型: Identifier
    • 修饰符: public static final
    • 源码定位: L34
    • 说明:

      TODO

  • LOCAL_DIFFICULTY

    • 类型: Identifier
    • 修饰符: public static final
    • 源码定位: L35
    • 说明:

      TODO

  • DAY_COUNT

    • 类型: Identifier
    • 修饰符: public static final
    • 源码定位: L36
    • 说明:

      TODO

  • ENTITY_SPAWN_COUNTS

    • 类型: Identifier
    • 修饰符: public static final
    • 源码定位: L37
    • 说明:

      TODO

  • SOUND_MOOD

    • 类型: Identifier
    • 修饰符: public static final
    • 源码定位: L38
    • 说明:

      TODO

  • SOUND_CACHE

    • 类型: Identifier
    • 修饰符: public static final
    • 源码定位: L39
    • 说明:

      TODO

  • POST_EFFECT

    • 类型: Identifier
    • 修饰符: public static final
    • 源码定位: L40
    • 说明:

      TODO

  • ENTITY_HITBOXES

    • 类型: Identifier
    • 修饰符: public static final
    • 源码定位: L41
    • 说明:

      TODO

  • CHUNK_BORDERS

    • 类型: Identifier
    • 修饰符: public static final
    • 源码定位: L42
    • 说明:

      TODO

  • THREE_DIMENSIONAL_CROSSHAIR

    • 类型: Identifier
    • 修饰符: public static final
    • 源码定位: L43
    • 说明:

      TODO

  • CHUNK_SECTION_PATHS

    • 类型: Identifier
    • 修饰符: public static final
    • 源码定位: L44
    • 说明:

      TODO

  • GPU_UTILIZATION

    • 类型: Identifier
    • 修饰符: public static final
    • 源码定位: L45
    • 说明:

      TODO

  • SIMPLE_PERFORMANCE_IMPACTORS

    • 类型: Identifier
    • 修饰符: public static final
    • 源码定位: L46
    • 说明:

      TODO

  • CHUNK_SECTION_OCTREE

    • 类型: Identifier
    • 修饰符: public static final
    • 源码定位: L47
    • 说明:

      TODO

  • VISUALIZE_WATER_LEVELS

    • 类型: Identifier
    • 修饰符: public static final
    • 源码定位: L48
    • 说明:

      TODO

  • VISUALIZE_HEIGHTMAP

    • 类型: Identifier
    • 修饰符: public static final
    • 源码定位: L49
    • 说明:

      TODO

  • VISUALIZE_COLLISION_BOXES

    • 类型: Identifier
    • 修饰符: public static final
    • 源码定位: L50
    • 说明:

      TODO

  • VISUALIZE_ENTITY_SUPPORTING_BLOCKS

    • 类型: Identifier
    • 修饰符: public static final
    • 源码定位: L51
    • 说明:

      TODO

  • VISUALIZE_BLOCK_LIGHT_LEVELS

    • 类型: Identifier
    • 修饰符: public static final
    • 源码定位: L52
    • 说明:

      TODO

  • VISUALIZE_SKY_LIGHT_LEVELS

    • 类型: Identifier
    • 修饰符: public static final
    • 源码定位: L53
    • 说明:

      TODO

  • VISUALIZE_SOLID_FACES

    • 类型: Identifier
    • 修饰符: public static final
    • 源码定位: L54
    • 说明:

      TODO

  • VISUALIZE_CHUNKS_ON_SERVER

    • 类型: Identifier
    • 修饰符: public static final
    • 源码定位: L55
    • 说明:

      TODO

  • VISUALIZE_SKY_LIGHT_SECTIONS

    • 类型: Identifier
    • 修饰符: public static final
    • 源码定位: L56
    • 说明:

      TODO

  • CHUNK_SECTION_VISIBILITY

    • 类型: Identifier
    • 修饰符: public static final
    • 源码定位: L57
    • 说明:

      TODO

  • PROFILES

    • 类型: Map<DebugScreenProfile,Map<Identifier,DebugScreenEntryStatus>>
    • 修饰符: public static final
    • 源码定位: L58
    • 说明:

      TODO

内部类/嵌套类型

构造器

方法

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

private static Identifier register(String id, DebugScreenEntry entry) @ L60

  • 方法名:register
  • 源码定位:L60
  • 返回类型:Identifier
  • 修饰符:private static

参数:

  • id: String
  • entry: DebugScreenEntry

说明:

TODO

private static Identifier register(Identifier identifier, DebugScreenEntry entry) @ L64

  • 方法名:register
  • 源码定位:L64
  • 返回类型:Identifier
  • 修饰符:private static

参数:

  • identifier: Identifier
  • entry: DebugScreenEntry

说明:

TODO

public static Map<Identifier,DebugScreenEntry> allEntries() @ L69

  • 方法名:allEntries
  • 源码定位:L69
  • 返回类型:Map<Identifier,DebugScreenEntry>
  • 修饰符:public static

参数:

说明:

TODO

public static DebugScreenEntry getEntry(Identifier id) @ L73

  • 方法名:getEntry
  • 源码定位:L73
  • 返回类型:DebugScreenEntry
  • 修饰符:public static

参数:

  • id: Identifier

说明:

TODO

代码

@OnlyIn(Dist.CLIENT)
public class DebugScreenEntries {
    private static final Map<Identifier, DebugScreenEntry> ENTRIES_BY_ID = new HashMap<>();
    public static final Identifier GAME_VERSION = register("game_version", new DebugEntryVersion());
    public static final Identifier FPS = register("fps", new DebugEntryFps());
    public static final Identifier TPS = register("tps", new DebugEntryTps());
    public static final Identifier MEMORY = register("memory", new DebugEntryMemory());
    public static final Identifier DETAILED_MEMORY = register("detailed_memory", new DebugEntryDetailedMemory());
    public static final Identifier SYSTEM_SPECS = register("system_specs", new DebugEntrySystemSpecs());
    public static final Identifier LOOKING_AT_BLOCK_STATE = register("looking_at_block_state", new DebugEntryLookingAt.BlockStateInfo());
    public static final Identifier LOOKING_AT_BLOCK_TAGS = register("looking_at_block_tags", new DebugEntryLookingAt.BlockTagInfo());
    public static final Identifier LOOKING_AT_FLUID_STATE = register("looking_at_fluid_state", new DebugEntryLookingAt.FluidStateInfo());
    public static final Identifier LOOKING_AT_FLUID_TAGS = register("looking_at_fluid_tags", new DebugEntryLookingAt.FluidTagInfo());
    public static final Identifier LOOKING_AT_ENTITY = register("looking_at_entity", new DebugEntryLookingAtEntity());
    public static final Identifier LOOKING_AT_ENTITY_TAGS = register("looking_at_entity_tags", new DebugEntryLookingAtEntityTags());
    public static final Identifier CHUNK_RENDER_STATS = register("chunk_render_stats", new DebugEntryChunkRenderStats());
    public static final Identifier CHUNK_GENERATION_STATS = register("chunk_generation_stats", new DebugEntryChunkGeneration());
    public static final Identifier ENTITY_RENDER_STATS = register("entity_render_stats", new DebugEntryEntityRenderStats());
    public static final Identifier PARTICLE_RENDER_STATS = register("particle_render_stats", new DebugEntryParticleRenderStats());
    public static final Identifier CHUNK_SOURCE_STATS = register("chunk_source_stats", new DebugEntryChunkSourceStats());
    public static final Identifier PLAYER_POSITION = register("player_position", new DebugEntryPosition());
    public static final Identifier PLAYER_SECTION_POSITION = register("player_section_position", new DebugEntrySectionPosition());
    public static final Identifier LIGHT_LEVELS = register("light_levels", new DebugEntryLight());
    public static final Identifier HEIGHTMAP = register("heightmap", new DebugEntryHeightmap());
    public static final Identifier BIOME = register("biome", new DebugEntryBiome());
    public static final Identifier LOCAL_DIFFICULTY = register("local_difficulty", new DebugEntryLocalDifficulty());
    public static final Identifier DAY_COUNT = register("day_count", new DebugEntryDayCount());
    public static final Identifier ENTITY_SPAWN_COUNTS = register("entity_spawn_counts", new DebugEntrySpawnCounts());
    public static final Identifier SOUND_MOOD = register("sound_mood", new DebugEntrySoundMood());
    public static final Identifier SOUND_CACHE = register("sound_cache", new DebugEntrySoundCache());
    public static final Identifier POST_EFFECT = register("post_effect", new DebugEntryPostEffect());
    public static final Identifier ENTITY_HITBOXES = register("entity_hitboxes", new DebugEntryNoop());
    public static final Identifier CHUNK_BORDERS = register("chunk_borders", new DebugEntryNoop());
    public static final Identifier THREE_DIMENSIONAL_CROSSHAIR = register("3d_crosshair", new DebugEntryNoop());
    public static final Identifier CHUNK_SECTION_PATHS = register("chunk_section_paths", new DebugEntryNoop());
    public static final Identifier GPU_UTILIZATION = register("gpu_utilization", new DebugEntryGpuUtilization());
    public static final Identifier SIMPLE_PERFORMANCE_IMPACTORS = register("simple_performance_impactors", new DebugEntrySimplePerformanceImpactors());
    public static final Identifier CHUNK_SECTION_OCTREE = register("chunk_section_octree", new DebugEntryNoop());
    public static final Identifier VISUALIZE_WATER_LEVELS = register("visualize_water_levels", new DebugEntryNoop());
    public static final Identifier VISUALIZE_HEIGHTMAP = register("visualize_heightmap", new DebugEntryNoop());
    public static final Identifier VISUALIZE_COLLISION_BOXES = register("visualize_collision_boxes", new DebugEntryNoop());
    public static final Identifier VISUALIZE_ENTITY_SUPPORTING_BLOCKS = register("visualize_entity_supporting_blocks", new DebugEntryNoop());
    public static final Identifier VISUALIZE_BLOCK_LIGHT_LEVELS = register("visualize_block_light_levels", new DebugEntryNoop());
    public static final Identifier VISUALIZE_SKY_LIGHT_LEVELS = register("visualize_sky_light_levels", new DebugEntryNoop());
    public static final Identifier VISUALIZE_SOLID_FACES = register("visualize_solid_faces", new DebugEntryNoop());
    public static final Identifier VISUALIZE_CHUNKS_ON_SERVER = register("visualize_chunks_on_server", new DebugEntryNoop());
    public static final Identifier VISUALIZE_SKY_LIGHT_SECTIONS = register("visualize_sky_light_sections", new DebugEntryNoop());
    public static final Identifier CHUNK_SECTION_VISIBILITY = register("chunk_section_visibility", new DebugEntryNoop());
    public static final Map<DebugScreenProfile, Map<Identifier, DebugScreenEntryStatus>> PROFILES;
 
    private static Identifier register(String id, DebugScreenEntry entry) {
        return register(Identifier.withDefaultNamespace(id), entry);
    }
 
    private static Identifier register(Identifier identifier, DebugScreenEntry entry) {
        ENTRIES_BY_ID.put(identifier, entry);
        return identifier;
    }
 
    public static Map<Identifier, DebugScreenEntry> allEntries() {
        return Map.copyOf(ENTRIES_BY_ID);
    }
 
    public static @Nullable DebugScreenEntry getEntry(Identifier id) {
        return ENTRIES_BY_ID.get(id);
    }
 
    static {
        Map<Identifier, DebugScreenEntryStatus> defaultProfile = Map.of(
            THREE_DIMENSIONAL_CROSSHAIR,
            DebugScreenEntryStatus.IN_OVERLAY,
            GAME_VERSION,
            DebugScreenEntryStatus.IN_OVERLAY,
            TPS,
            DebugScreenEntryStatus.IN_OVERLAY,
            FPS,
            DebugScreenEntryStatus.IN_OVERLAY,
            MEMORY,
            DebugScreenEntryStatus.IN_OVERLAY,
            SYSTEM_SPECS,
            DebugScreenEntryStatus.IN_OVERLAY,
            PLAYER_POSITION,
            DebugScreenEntryStatus.IN_OVERLAY,
            PLAYER_SECTION_POSITION,
            DebugScreenEntryStatus.IN_OVERLAY,
            SIMPLE_PERFORMANCE_IMPACTORS,
            DebugScreenEntryStatus.IN_OVERLAY
        );
        Map<Identifier, DebugScreenEntryStatus> performance = Map.of(
            TPS,
            DebugScreenEntryStatus.IN_OVERLAY,
            FPS,
            DebugScreenEntryStatus.ALWAYS_ON,
            GPU_UTILIZATION,
            DebugScreenEntryStatus.IN_OVERLAY,
            MEMORY,
            DebugScreenEntryStatus.IN_OVERLAY,
            SIMPLE_PERFORMANCE_IMPACTORS,
            DebugScreenEntryStatus.IN_OVERLAY
        );
        PROFILES = Map.of(DebugScreenProfile.DEFAULT, defaultProfile, DebugScreenProfile.PERFORMANCE, performance);
    }
}

引用的其他类