mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
finished large cooling tower
This commit is contained in:
parent
10fc95c6ea
commit
f2a4ee69cf
@ -6,6 +6,7 @@ import com.hbm.tileentity.machine.TileEntityTowerLarge;
|
|||||||
import net.minecraft.block.material.Material;
|
import net.minecraft.block.material.Material;
|
||||||
import net.minecraft.tileentity.TileEntity;
|
import net.minecraft.tileentity.TileEntity;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
|
import net.minecraftforge.common.util.ForgeDirection;
|
||||||
|
|
||||||
public class MachineTowerLarge extends BlockDummyable {
|
public class MachineTowerLarge extends BlockDummyable {
|
||||||
|
|
||||||
@ -30,4 +31,20 @@ public class MachineTowerLarge extends BlockDummyable {
|
|||||||
public int getOffset() {
|
public int getOffset() {
|
||||||
return 4;
|
return 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void fillSpace(World world, int x, int y, int z, ForgeDirection dir, int o) {
|
||||||
|
super.fillSpace(world, x, y, z, dir, o);
|
||||||
|
|
||||||
|
x = x + dir.offsetX * o;
|
||||||
|
z = z + dir.offsetZ * o;
|
||||||
|
|
||||||
|
for(int i = 2; i <= 6; i++) {
|
||||||
|
ForgeDirection dr2 = ForgeDirection.getOrientation(i);
|
||||||
|
ForgeDirection rot = dr2.getRotation(ForgeDirection.UP);
|
||||||
|
this.makeExtra(world, x + dr2.offsetX * 4, y, z + dr2.offsetZ * 4);
|
||||||
|
this.makeExtra(world, x + dr2.offsetX * 4 + rot.offsetX * 2, y, z + dr2.offsetZ * 4 + rot.offsetZ * 2);
|
||||||
|
this.makeExtra(world, x + dr2.offsetX * 4 + rot.offsetX * -2, y, z + dr2.offsetZ * 4 + rot.offsetZ * -2);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -105,7 +105,7 @@ public class EntityNukeExplosionMK3 extends Entity {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private EntityNukeExplosionMK3(World p_i1582_1_) {
|
public EntityNukeExplosionMK3(World p_i1582_1_) {
|
||||||
super(p_i1582_1_);
|
super(p_i1582_1_);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1,11 +1,33 @@
|
|||||||
package com.hbm.tileentity.machine;
|
package com.hbm.tileentity.machine;
|
||||||
|
|
||||||
|
import com.hbm.handler.FluidTypeHandler.FluidType;
|
||||||
|
import com.hbm.inventory.FluidTank;
|
||||||
|
|
||||||
import cpw.mods.fml.relauncher.Side;
|
import cpw.mods.fml.relauncher.Side;
|
||||||
import cpw.mods.fml.relauncher.SideOnly;
|
import cpw.mods.fml.relauncher.SideOnly;
|
||||||
import net.minecraft.tileentity.TileEntity;
|
import net.minecraft.tileentity.TileEntity;
|
||||||
import net.minecraft.util.AxisAlignedBB;
|
import net.minecraft.util.AxisAlignedBB;
|
||||||
|
import net.minecraftforge.common.util.ForgeDirection;
|
||||||
|
|
||||||
public class TileEntityTowerLarge extends TileEntity {
|
public class TileEntityTowerLarge extends TileEntityCondenser {
|
||||||
|
|
||||||
|
public TileEntityTowerLarge() {
|
||||||
|
tanks = new FluidTank[2];
|
||||||
|
tanks[0] = new FluidTank(FluidType.SPENTSTEAM, 10000, 0);
|
||||||
|
tanks[1] = new FluidTank(FluidType.WATER, 10000, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void fillFluidInit(FluidType type) {
|
||||||
|
|
||||||
|
for(int i = 2; i <= 6; i++) {
|
||||||
|
ForgeDirection dir = ForgeDirection.getOrientation(i);
|
||||||
|
ForgeDirection rot = dir.getRotation(ForgeDirection.UP);
|
||||||
|
fillFluid(xCoord + dir.offsetX * 5, yCoord, zCoord + dir.offsetZ * 5, getTact(), type);
|
||||||
|
fillFluid(xCoord + dir.offsetX * 5 + rot.offsetX * 2, yCoord, zCoord + dir.offsetZ * 5 + rot.offsetZ * 2, getTact(), type);
|
||||||
|
fillFluid(xCoord + dir.offsetX * 5 + rot.offsetX * -2, yCoord, zCoord + dir.offsetZ * 5 + rot.offsetZ * -2, getTact(), type);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
AxisAlignedBB bb = null;
|
AxisAlignedBB bb = null;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user