mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
chungus
This commit is contained in:
parent
debb9449cb
commit
4bd1ccddf2
@ -35,6 +35,7 @@ public class TileEntityChungus extends TileEntityLoadedBase implements IFluidAcc
|
|||||||
private int turnTimer;
|
private int turnTimer;
|
||||||
public float rotor;
|
public float rotor;
|
||||||
public float lastRotor;
|
public float lastRotor;
|
||||||
|
public float fanAcceleration = 0F;
|
||||||
|
|
||||||
public List<IFluidAcceptor> list2 = new ArrayList();
|
public List<IFluidAcceptor> list2 = new ArrayList();
|
||||||
|
|
||||||
@ -101,15 +102,16 @@ public class TileEntityChungus extends TileEntityLoadedBase implements IFluidAcc
|
|||||||
} else {
|
} else {
|
||||||
|
|
||||||
this.lastRotor = this.rotor;
|
this.lastRotor = this.rotor;
|
||||||
|
this.rotor += this.fanAcceleration;
|
||||||
|
|
||||||
|
if(this.rotor >= 360) {
|
||||||
|
this.rotor -= 360;
|
||||||
|
this.lastRotor -= 360;
|
||||||
|
}
|
||||||
|
|
||||||
if(turnTimer > 0) {
|
if(turnTimer > 0) {
|
||||||
|
|
||||||
this.rotor += 25F;
|
this.fanAcceleration = Math.max(0F, Math.min(25F, this.fanAcceleration += 0.1F));
|
||||||
|
|
||||||
if(this.rotor >= 360) {
|
|
||||||
this.rotor -= 360;
|
|
||||||
this.lastRotor -= 360;
|
|
||||||
}
|
|
||||||
|
|
||||||
Random rand = worldObj.rand;
|
Random rand = worldObj.rand;
|
||||||
ForgeDirection dir = ForgeDirection.getOrientation(this.getBlockMetadata() - BlockDummyable.offset);
|
ForgeDirection dir = ForgeDirection.getOrientation(this.getBlockMetadata() - BlockDummyable.offset);
|
||||||
@ -123,6 +125,9 @@ public class TileEntityChungus extends TileEntityLoadedBase implements IFluidAcc
|
|||||||
-dir.offsetX * 0.2, 0, -dir.offsetZ * 0.2);
|
-dir.offsetX * 0.2, 0, -dir.offsetZ * 0.2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if(turnTimer < 0) {
|
||||||
|
this.fanAcceleration = Math.max(0F, Math.min(25F, this.fanAcceleration -= 0.1F));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user