Format Dynamic Light classes
This commit is contained in:
parent
b125383b56
commit
375c449470
|
@ -23,7 +23,7 @@ public class DynamicLight {
|
||||||
private int lastLightLevel = 0;
|
private int lastLightLevel = 0;
|
||||||
private boolean underwater = false;
|
private boolean underwater = false;
|
||||||
private long timeCheckMs = 0L;
|
private long timeCheckMs = 0L;
|
||||||
private Set < BlockPos > setLitChunkPos = new HashSet();
|
private Set <BlockPos> setLitChunkPos = new HashSet();
|
||||||
private BlockPos.MutableBlockPos blockPosMutable = new BlockPos.MutableBlockPos();
|
private BlockPos.MutableBlockPos blockPosMutable = new BlockPos.MutableBlockPos();
|
||||||
|
|
||||||
public DynamicLight(Entity p_i36_1_) {
|
public DynamicLight(Entity p_i36_1_) {
|
||||||
|
@ -70,7 +70,7 @@ public class DynamicLight {
|
||||||
this.underwater = block == Blocks.water;
|
this.underwater = block == Blocks.water;
|
||||||
}
|
}
|
||||||
|
|
||||||
Set < BlockPos > set = new HashSet();
|
Set <BlockPos> set = new HashSet();
|
||||||
|
|
||||||
if (j > 0) {
|
if (j > 0) {
|
||||||
EnumFacing enumfacing2 = (i & 15) >= 8 ? EnumFacing.EAST : EnumFacing.WEST;
|
EnumFacing enumfacing2 = (i & 15) >= 8 ? EnumFacing.EAST : EnumFacing.WEST;
|
||||||
|
@ -123,7 +123,7 @@ public class DynamicLight {
|
||||||
public void updateLitChunks(RenderGlobal p_updateLitChunks_1_) {
|
public void updateLitChunks(RenderGlobal p_updateLitChunks_1_) {
|
||||||
for (BlockPos blockpos: this.setLitChunkPos) {
|
for (BlockPos blockpos: this.setLitChunkPos) {
|
||||||
RenderChunk renderchunk = p_updateLitChunks_1_.getRenderChunk(blockpos);
|
RenderChunk renderchunk = p_updateLitChunks_1_.getRenderChunk(blockpos);
|
||||||
this.updateChunkLight(renderchunk, (Set < BlockPos > ) null, (Set < BlockPos > ) null);
|
this.updateChunkLight(renderchunk, (Set <BlockPos> ) null, (Set <BlockPos> ) null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ import net.minecraft.util.IntegerCache;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
|
|
||||||
public class DynamicLights {
|
public class DynamicLights {
|
||||||
private static Map < Integer, DynamicLight > mapDynamicLights = new HashMap();
|
private static Map <Integer, DynamicLight> mapDynamicLights = new HashMap();
|
||||||
private static long timeUpdateMs = 0L;
|
private static long timeUpdateMs = 0L;
|
||||||
private static final double MAX_DIST = 7.5D;
|
private static final double MAX_DIST = 7.5D;
|
||||||
private static final double MAX_DIST_SQ = 56.25D;
|
private static final double MAX_DIST_SQ = 56.25D;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user