Updated core

This commit is contained in:
coolGi2007
2021-12-10 00:50:31 +00:00
parent 580d17bb24
commit 55f636b2d5
4 changed files with 18 additions and 9 deletions
@@ -62,6 +62,7 @@ public class BlockColorWrapper implements IBlockColorWrapper
System.out.println(block + " color " + Integer.toHexString(color) + " to tint " + toTint + " folliageTint " + folliageTint + " grassTint " + grassTint + " waterTint " + waterTint);
}
/**
* this return a wrapper of the block in input
* @param blockState of the block to wrap
@@ -236,6 +237,11 @@ public class BlockColorWrapper implements IBlockColorWrapper
return block == Blocks.WATER;
}
@Override
public String getName() {
return block.getName().toString();
}
//--------------//
//Colors getters//
//--------------//
@@ -246,10 +252,6 @@ public class BlockColorWrapper implements IBlockColorWrapper
return isColored;
}
@Override
public String getName() {
return block.getName().toString();
}
@Override
public int getColor()
@@ -196,11 +196,11 @@ public class MinecraftRenderWrapper implements IMinecraftRenderWrapper
int col =
((c.getRed() & 0xFF) << 16) | // blue
((c.getGreen() & 0xFF) << 8) | // green
((c.getBlue() & 0xFF)) | // red
((c.getAlpha() & 0xFF) << 24); // alpha
((c.getGreen() & 0xFF) << 8) | // green
((c.getBlue() & 0xFF)) | // red
((c.getAlpha() & 0xFF) << 24); // alpha
// 2D array stored in a 1D array.
// Thank you Tim from College ;)
pixels[u * lightMapWidth + v] = col;
+1 -1
Submodule core updated: cd50be6531...1b82acec9f
@@ -49,3 +49,10 @@ authors="James Seibel, Leonardo Amato, and Cola" #optional
#// The description text for the mod (multi line!) (#mandatory)
description='''This mod generates and renders simplified terrain beyond the normal view distance, at a low performance cost.'''
#// to make mod be not required on forge server
acceptableRemoteVersions="*"
#// to not load on server at all as there is no integration at all
#// TODO remove when we add server support
clientSideOnly=true