Start decomposing minecraft getters for terrain ingesting
This commit is contained in:
@@ -37,10 +37,15 @@ public class WorldConversionFactory {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var bDat = blockContainer.data;
|
||||||
|
var bStor = bDat.storage;
|
||||||
|
var bPall = bDat.palette;
|
||||||
|
int i = 0;
|
||||||
for (int y = 0; y < 16; y++) {
|
for (int y = 0; y < 16; y++) {
|
||||||
for (int z = 0; z < 16; z++) {
|
for (int z = 0; z < 16; z++) {
|
||||||
for (int x = 0; x < 16; x++) {
|
for (int x = 0; x < 16; x++) {
|
||||||
var state = blockContainer.get(x, y, z);
|
var state = bPall.get(bStor.get(i++));
|
||||||
|
|
||||||
byte light = lightSupplier.supply(x,y,z,state);
|
byte light = lightSupplier.supply(x,y,z,state);
|
||||||
if (!(state.isAir() && (light==0))) {
|
if (!(state.isAir() && (light==0))) {
|
||||||
if (block != state) {
|
if (block != state) {
|
||||||
|
|||||||
@@ -21,4 +21,8 @@ accessible field net/minecraft/client/network/ClientPlayerInteractionManager net
|
|||||||
accessible method net/minecraft/client/render/GameRenderer getFov (Lnet/minecraft/client/render/Camera;FZ)F
|
accessible method net/minecraft/client/render/GameRenderer getFov (Lnet/minecraft/client/render/Camera;FZ)F
|
||||||
accessible method net/minecraft/client/render/RenderPhase$TextureBase getId ()Ljava/util/Optional;
|
accessible method net/minecraft/client/render/RenderPhase$TextureBase getId ()Ljava/util/Optional;
|
||||||
|
|
||||||
accessible field net/minecraft/client/render/LightmapTextureManager lightmapFramebuffer Lnet/minecraft/client/gl/SimpleFramebuffer;
|
accessible field net/minecraft/client/render/LightmapTextureManager lightmapFramebuffer Lnet/minecraft/client/gl/SimpleFramebuffer;
|
||||||
|
|
||||||
|
accessible field net/minecraft/world/chunk/PalettedContainer data Lnet/minecraft/world/chunk/PalettedContainer$Data;
|
||||||
|
accessible field net/minecraft/world/chunk/PalettedContainer$Data storage Lnet/minecraft/util/collection/PaletteStorage;
|
||||||
|
accessible field net/minecraft/world/chunk/PalettedContainer$Data palette Lnet/minecraft/world/chunk/Palette;
|
||||||
Reference in New Issue
Block a user