fix lighting color
This commit is contained in:
parent
d996d36742
commit
f647862095
3 changed files with 54 additions and 32 deletions
|
@ -145,6 +145,7 @@ public abstract class Dimension extends Nameable {
|
|||
|
||||
// client
|
||||
private boolean denseFog = false;
|
||||
private boolean subtractBlock = false;
|
||||
private float cloudHeight = 192.0f;
|
||||
private int skyColor = 0x000000;
|
||||
private int fogColor = 0x000000;
|
||||
|
@ -561,6 +562,11 @@ public abstract class Dimension extends Nameable {
|
|||
return this;
|
||||
}
|
||||
|
||||
public final Dimension enableBlockLightSubtraction() {
|
||||
this.subtractBlock = true;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public final Dimension setTimeQualifier(int value) {
|
||||
this.timeQualifier = value;
|
||||
|
@ -717,6 +723,10 @@ public abstract class Dimension extends Nameable {
|
|||
public final int getBlockColor() {
|
||||
return this.blockColor;
|
||||
}
|
||||
|
||||
public final boolean isBlockLightSubtracted() {
|
||||
return this.subtractBlock;
|
||||
}
|
||||
|
||||
public final String getCloudTexture() {
|
||||
return "textures/world/" + this.cloudTexture.getTexture() + ".png";
|
||||
|
@ -1027,6 +1037,7 @@ public abstract class Dimension extends Nameable {
|
|||
this.cloudColor = tag.getInt("CloudColor");
|
||||
this.lightColor = tag.getInt("LightColor");
|
||||
this.blockColor = tag.getInt("BlockColor");
|
||||
this.subtractBlock = tag.getBool("SubtractBlock");
|
||||
this.gravity = tag.getFloat("Gravity");
|
||||
this.temperature = tag.getFloat("Temperature");
|
||||
this.orbitOffset = tag.getFloat("OrbitOffset");
|
||||
|
@ -1205,6 +1216,7 @@ public abstract class Dimension extends Nameable {
|
|||
tag.setInt("CloudColor", this.cloudColor);
|
||||
tag.setInt("LightColor", this.lightColor);
|
||||
tag.setInt("BlockColor", this.blockColor);
|
||||
tag.setBool("SubtractBlock", this.subtractBlock);
|
||||
tag.setFloat("Gravity", this.gravity);
|
||||
tag.setFloat("Temperature", this.temperature);
|
||||
tag.setFloat("OrbitOffset", this.orbitOffset);
|
||||
|
|
|
@ -583,14 +583,14 @@ public abstract class UniverseRegistry {
|
|||
.setStarColorSin(25.0f, 0.1f, 0.25f, 0xff00ff, 1, 4).setDeepStarColorSin(25.0f, 0.1f, 0.5f, 0xff00ff, 1, 4));
|
||||
|
||||
registerDomain("tianxin", "Tian'Xin");
|
||||
registerArea("nienrath", "Ni'enrath", new Area(0x7f00ff, 0x7f00ff, 276.15f, 1).setLightColor(0x7f00ff).setBlockColor(0xcf6fff)
|
||||
registerArea("nienrath", "Ni'enrath", new Area(0x7f00ff, 0x7f00ff, 276.15f, 1).setLightColor(0x07000f).setBlockColor(0xcf6fff)
|
||||
.setPerlinGen(Blocks.tian.getState(), Blocks.springwater.getState(), 63).setBiome(Biome.TIAN)
|
||||
.setBiomeReplacer(Blocks.tian.getState()).enableLongCaves().enableMobs().enableSnow()
|
||||
.addLake(Blocks.springwater.getState(), Blocks.tian.getState(), Blocks.tian.getState(), 4, 0, 255, false)
|
||||
.addLiquid(Blocks.flowing_springwater.getState(), 50, 8, 255, false), "tianxin");
|
||||
|
||||
registerDomain("digital", "Digital");
|
||||
registerArea("cyberspace", "Cyberspace", new Area(0x000000, 0x000000, 293.15f, 15).setLightColor(0x00ff00).setBlockColor(0x00ff00)
|
||||
registerArea("cyberspace", "Cyberspace", new Area(0x000000, 0x000000, 293.15f, 15).setLightColor(0x00ff00).setBlockColor(0xff0000).enableBlockLightSubtraction()
|
||||
.setFlatGen(Blocks.green_clay.getState(), 2)
|
||||
.enableMobs(), "digital");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue