Changed version #

This commit is contained in:
Rseifert 2012-07-02 02:37:26 -04:00
parent 4dac2739c1
commit 2a6f3cb9f9
2 changed files with 52 additions and 43 deletions

View file

@ -5,52 +5,61 @@ import net.minecraft.src.forge.ITextureProvider;
import net.minecraft.src.universalelectricity.UEIRotatable;
import net.minecraft.src.universalelectricity.components.UniversalComponents;
public class TileEntityMachine extends TileEntity implements ITextureProvider,UEIRotatable {
private int facing;
public void writeToNBT(NBTTagCompound par1NBTTagCompound)
{
super.writeToNBT(par1NBTTagCompound);
par1NBTTagCompound.setInteger("facing", (int)this.facing);
}
public void readFromNBT(NBTTagCompound par1NBTTagCompound)
{
super.readFromNBT(par1NBTTagCompound);
this.facing = par1NBTTagCompound.getInteger("facing");
}
public TileEntity getSteamMachine(int i)
{
int x = this.xCoord;
int y = this.yCoord;
int z = this.zCoord;
switch(i){
case 0: y = y - 1;break;
case 1: y = y + 1;break;
case 2: z = z + 1;break;
case 3: z = z - 1;break;
case 4: x = x + 1;break;
case 5: x = x - 1;break;
}
TileEntity aEntity = worldObj.getBlockTileEntity(x, y, z);
if(aEntity instanceof TileEntityMachine)
{
return aEntity;
}
return null;
public class TileEntityMachine extends TileEntity implements ITextureProvider, UEIRotatable
{
private byte facing;
public TileEntity getSteamMachine(int i)
{
int x = this.xCoord;
int y = this.yCoord;
int z = this.zCoord;
switch(i)
{
case 0: y = y - 1;break;
case 1: y = y + 1;break;
case 2: z = z + 1;break;
case 3: z = z - 1;break;
case 4: x = x + 1;break;
case 5: x = x - 1;break;
}
TileEntity aEntity = worldObj.getBlockTileEntity(x, y, z);
if(aEntity instanceof TileEntityMachine)
{
return aEntity;
}
public byte getDirection() {
// TODO Auto-generated method stub
return (byte) this.facing;
return null;
}
public void setDirection(byte facingDirection) {
this.facing = facingDirection;
}
public byte getDirection()
{
return this.facing;
}
public void setDirection(byte facingDirection)
{
this.facing = facingDirection;
}
@Override
public String getTextureFile()
{
return "/eui/blocks.png";
}
}
@Override
public void writeToNBT(NBTTagCompound par1NBTTagCompound)
{
super.writeToNBT(par1NBTTagCompound);
par1NBTTagCompound.setByte("facing", (byte)this.facing);
}
@Override
public void readFromNBT(NBTTagCompound par1NBTTagCompound)
{
super.readFromNBT(par1NBTTagCompound);
this.facing = par1NBTTagCompound.getByte("facing");
}
}

View file

@ -32,7 +32,7 @@ public class mod_EUIndustry extends NetworkMod {
@Override
public String getVersion() {
// TODO change version on each update ;/
return "0.0.4";
return "0.0.5";
}
public static int configurationProperties()
{