Add chunkstatus and chunkversion shaders (for problem determination)

This commit is contained in:
Mike Primm 2021-12-19 21:02:35 -06:00
parent b58ffab04b
commit 7360df379f
14 changed files with 537 additions and 117 deletions

View file

@ -553,15 +553,6 @@ public abstract class AbstractMapChunkCache extends MapChunkCache {
return (((chunkindex * (worldheight - ymin)) + (y - ymin)) << 8) | (bx << 4) | bz;
}
@Override
public final boolean isEmptySection() {
boolean[] flags = isSectionNotEmpty[chunkindex];
if (flags == null) {
initSectionData(chunkindex);
flags = isSectionNotEmpty[chunkindex];
}
return !flags[(y >> 4) + sectoff];
}
@Override
public RenderPatchFactory getPatchFactory() {
return HDBlockModels.getPatchDefinitionFactory();
}
@ -604,6 +595,14 @@ public abstract class AbstractMapChunkCache extends MapChunkCache {
return 0;
}
}
@Override
public int getDataVersion() {
return 0;
}
@Override
public String getChunkStatus() {
return null;
}
}
// Special iterator for END : forces skylight to 15