mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
28 lines
503 B
Java
28 lines
503 B
Java
package com.hbm.blocks;
|
|
|
|
import net.minecraft.tileentity.TileEntity;
|
|
|
|
public class TileEntityDecoTapeRecorder extends TileEntity {
|
|
|
|
private int rot = 0;
|
|
|
|
public int getRotation() {
|
|
if(this.worldObj.getBlock(this.xCoord, this.yCoord, this.zCoord) instanceof DecoTapeRecorder)
|
|
{
|
|
if(this.worldObj.isBlockIndirectlyGettingPowered(this.xCoord, this.yCoord, this.zCoord))
|
|
{
|
|
rot += 3;
|
|
if(rot >= 360)
|
|
{
|
|
rot -=360;
|
|
}
|
|
return rot;
|
|
}
|
|
|
|
rot = 0;
|
|
}
|
|
|
|
return 0;
|
|
}
|
|
}
|