mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-26 14:52:58 +00:00
Rename Object3D to Coord4D, work on balloons
This commit is contained in:
1 parent
48af6f8fcc
commit
0ab803feeb
108 files changed
+652
-622
No files matched your search
@@ -4,7 +4,7 @@ import java.util.HashSet;
|
||||
import java.util.Random;
|
||||
import java.util.Set;
|
||||
|
||||
import mekanism.api.Object3D;
|
||||
import mekanism.api.Coord4D;
|
||||
import mekanism.common.Mekanism;
|
||||
import mekanism.common.tileentity.TileEntityDynamicTank;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
@@ -33,7 +33,7 @@ public class ThreadTankSparkle extends Thread
|
||||
try {
|
||||
if(Mekanism.dynamicTankEasterEgg)
|
||||
{
|
||||
MekanismClient.audioHandler.quickPlay("cj/CJ_" + (random.nextInt(3)+1) + ".ogg", pointer.worldObj, Object3D.get(pointer));
|
||||
MekanismClient.audioHandler.quickPlay("cj/CJ_" + (random.nextInt(3)+1) + ".ogg", pointer.worldObj, Coord4D.get(pointer));
|
||||
}
|
||||
|
||||
loop(pointer);
|
||||
@@ -46,32 +46,32 @@ public class ThreadTankSparkle extends Thread
|
||||
|
||||
for(int i = 0; i < 6; i++)
|
||||
{
|
||||
if(Object3D.get(tileEntity).sideVisible(ForgeDirection.DOWN, world))
|
||||
if(Coord4D.get(tileEntity).sideVisible(ForgeDirection.DOWN, world))
|
||||
{
|
||||
world.spawnParticle("reddust", tileEntity.xCoord + random.nextDouble(), tileEntity.yCoord + -.01, tileEntity.zCoord + random.nextDouble(), 0, 0, 0);
|
||||
}
|
||||
|
||||
if(Object3D.get(tileEntity).sideVisible(ForgeDirection.UP, world))
|
||||
if(Coord4D.get(tileEntity).sideVisible(ForgeDirection.UP, world))
|
||||
{
|
||||
world.spawnParticle("reddust", tileEntity.xCoord + random.nextDouble(), tileEntity.yCoord + 1.01, tileEntity.zCoord + random.nextDouble(), 0, 0, 0);
|
||||
}
|
||||
|
||||
if(Object3D.get(tileEntity).sideVisible(ForgeDirection.NORTH, world))
|
||||
if(Coord4D.get(tileEntity).sideVisible(ForgeDirection.NORTH, world))
|
||||
{
|
||||
world.spawnParticle("reddust", tileEntity.xCoord + random.nextDouble(), tileEntity.yCoord + random.nextDouble(), tileEntity.zCoord + -.01, 0, 0, 0);
|
||||
}
|
||||
|
||||
if(Object3D.get(tileEntity).sideVisible(ForgeDirection.SOUTH, world))
|
||||
if(Coord4D.get(tileEntity).sideVisible(ForgeDirection.SOUTH, world))
|
||||
{
|
||||
world.spawnParticle("reddust", tileEntity.xCoord + random.nextDouble(), tileEntity.yCoord + random.nextDouble(), tileEntity.zCoord + 1.01, 0, 0, 0);
|
||||
}
|
||||
|
||||
if(Object3D.get(tileEntity).sideVisible(ForgeDirection.WEST, world))
|
||||
if(Coord4D.get(tileEntity).sideVisible(ForgeDirection.WEST, world))
|
||||
{
|
||||
world.spawnParticle("reddust", tileEntity.xCoord + -.01, tileEntity.yCoord + random.nextDouble(), tileEntity.zCoord + random.nextDouble(), 0, 0, 0);
|
||||
}
|
||||
|
||||
if(Object3D.get(tileEntity).sideVisible(ForgeDirection.EAST, world))
|
||||
if(Coord4D.get(tileEntity).sideVisible(ForgeDirection.EAST, world))
|
||||
{
|
||||
world.spawnParticle("reddust", tileEntity.xCoord + 1.01, tileEntity.yCoord + random.nextDouble(), tileEntity.zCoord + random.nextDouble(), 0, 0, 0);
|
||||
}
|
||||
@@ -81,7 +81,7 @@ public class ThreadTankSparkle extends Thread
|
||||
|
||||
for(ForgeDirection side : ForgeDirection.VALID_DIRECTIONS)
|
||||
{
|
||||
TileEntity tile = Object3D.get(tileEntity).getFromSide(side).getTileEntity(pointer.worldObj);
|
||||
TileEntity tile = Coord4D.get(tileEntity).getFromSide(side).getTileEntity(pointer.worldObj);
|
||||
|
||||
if(tile instanceof TileEntityDynamicTank && !iteratedNodes.contains(tile))
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user