mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-08-10 17:55:44 +00:00
squirintg with precision and elegance
and prelegance and elegision
This commit is contained in:
parent
9ab159d9b6
commit
3709ac1818
@ -5,6 +5,7 @@ import com.hbm.handler.ThreeInts;
|
|||||||
import com.hbm.interfaces.ICopiable;
|
import com.hbm.interfaces.ICopiable;
|
||||||
import com.hbm.main.MainRegistry;
|
import com.hbm.main.MainRegistry;
|
||||||
import com.hbm.tileentity.IPersistentNBT;
|
import com.hbm.tileentity.IPersistentNBT;
|
||||||
|
import com.hbm.util.Clock;
|
||||||
import com.hbm.util.EntityDamageUtil;
|
import com.hbm.util.EntityDamageUtil;
|
||||||
import com.hbm.util.fauxpointtwelve.BlockPos;
|
import com.hbm.util.fauxpointtwelve.BlockPos;
|
||||||
import com.hbm.world.gen.nbt.INBTBlockTransformable;
|
import com.hbm.world.gen.nbt.INBTBlockTransformable;
|
||||||
@ -647,11 +648,15 @@ public abstract class BlockDummyable extends BlockContainer implements ICustomBl
|
|||||||
GL11.glDepthMask(false);
|
GL11.glDepthMask(false);
|
||||||
tess.startDrawing(GL11.GL_LINES);
|
tess.startDrawing(GL11.GL_LINES);
|
||||||
tess.setBrightness(240);
|
tess.setBrightness(240);
|
||||||
|
|
||||||
|
double timer = (Clock.get_ms() % (1000D * Math.PI)) / 250D;
|
||||||
|
double sine = Math.sin(timer);
|
||||||
|
int color = (int) (255 * (sine * 0.25 + 0.75));
|
||||||
|
|
||||||
if(canPlace) {
|
if(canPlace) {
|
||||||
tess.setColorRGBA(0, 255, 0, 255);
|
tess.setColorRGBA(0, color, 0, 255);
|
||||||
} else {
|
} else {
|
||||||
tess.setColorRGBA(255, 0, 0, 255);
|
tess.setColorRGBA(color, 0, 0, 255);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Gets the list of different dimensions that each XLmultiblock has,
|
// Gets the list of different dimensions that each XLmultiblock has,
|
||||||
@ -816,7 +821,7 @@ public abstract class BlockDummyable extends BlockContainer implements ICustomBl
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
tess.setColorRGBA(0, 0, 255, 255);
|
tess.setColorRGBA(0, 0, color, 255);
|
||||||
|
|
||||||
// boo-yeah
|
// boo-yeah
|
||||||
for(double[] extra : this.getAABBExtras()) {
|
for(double[] extra : this.getAABBExtras()) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user