|
30 | 30 | import de.bluecolored.bluecommands.annotations.Argument; |
31 | 31 | import de.bluecolored.bluecommands.annotations.Command; |
32 | 32 | import de.bluecolored.bluemap.common.BlueMapService; |
33 | | -import de.bluecolored.bluemap.common.commands.Permission; |
34 | | -import de.bluecolored.bluemap.common.commands.Unloaded; |
35 | | -import de.bluecolored.bluemap.common.commands.WithPosition; |
36 | | -import de.bluecolored.bluemap.common.commands.WithWorld; |
| 33 | +import de.bluecolored.bluemap.common.commands.*; |
37 | 34 | import de.bluecolored.bluemap.common.config.BlueMapConfigManager; |
38 | 35 | import de.bluecolored.bluemap.common.debug.StateDumper; |
39 | 36 | import de.bluecolored.bluemap.common.plugin.Plugin; |
|
45 | 42 | import de.bluecolored.bluemap.core.world.ChunkConsumer; |
46 | 43 | import de.bluecolored.bluemap.core.world.LightData; |
47 | 44 | import de.bluecolored.bluemap.core.world.World; |
| 45 | +import de.bluecolored.bluemap.core.world.mca.chunk.MCAChunk; |
48 | 46 | import lombok.RequiredArgsConstructor; |
49 | 47 | import net.kyori.adventure.text.Component; |
50 | 48 |
|
@@ -126,11 +124,14 @@ public Component block(CommandSource source, World world, @Argument("x") int x, |
126 | 124 | text(chunkPos.getY()).color(HIGHLIGHT_COLOR) |
127 | 125 | ) |
128 | 126 | .appendNewline() |
129 | | - .append(details(BASE_COLOR, |
| 127 | + .append(details(BASE_COLOR, TextFormat.stripNulls( |
130 | 128 | item("is generated", chunk.isGenerated()), |
131 | 129 | item("has lightdata", chunk.hasLightData()), |
| 130 | + chunk instanceof MCAChunk mcaChunk ? |
| 131 | + item("data-version", mcaChunk.getDataVersion()) : |
| 132 | + null, |
132 | 133 | item("inhabited-time", chunk.getInhabitedTime()) |
133 | | - )) |
| 134 | + ))) |
134 | 135 | ), |
135 | 136 | item("world", text(world.getId()).color(HIGHLIGHT_COLOR) |
136 | 137 | .appendNewline() |
|
0 commit comments