Renamed TileMeta to TileRotation

This commit is contained in:
modmuss50 2015-09-19 09:31:24 +01:00
parent aacc73102d
commit 148715111f
34 changed files with 54 additions and 68 deletions

View file

@ -53,12 +53,12 @@ public class TileAesu extends TilePowerAcceptor implements IWrenchable {
@Override
public short getFacing() {
return (short) getMeta();
return (short) getRotation();
}
@Override
public void setFacing(short facing) {
setMeta(facing);
setRotation(facing);
}
@Override
@ -142,12 +142,12 @@ public class TileAesu extends TilePowerAcceptor implements IWrenchable {
@Override
public boolean canAcceptEnergy(ForgeDirection direction) {
return getMeta() != Functions.getIntDirFromDirection(direction);
return getRotation() != Functions.getIntDirFromDirection(direction);
}
@Override
public boolean canProvideEnergy(ForgeDirection direction) {
return getMeta() == Functions.getIntDirFromDirection(direction);
return getRotation() == Functions.getIntDirFromDirection(direction);
}
@Override

View file

@ -13,7 +13,7 @@ import java.util.List;
public abstract class TileMachineBase extends TileEntity {
int meta;
int rotation;
public void syncWithAll() {
if (!worldObj.isRemote) {
@ -41,12 +41,12 @@ public abstract class TileMachineBase extends TileEntity {
readFromNBT(packet.func_148857_g());
}
public int getMeta() {
return meta;
public int getRotation() {
return rotation;
}
public void setMeta(int meta) {
this.meta = meta;
public void setRotation(int rotation) {
this.rotation = rotation;
syncWithAll();
worldObj.notifyBlockChange(xCoord, yCoord, zCoord, blockType);
worldObj.markBlockForUpdate(xCoord, yCoord, zCoord);
@ -56,12 +56,12 @@ public abstract class TileMachineBase extends TileEntity {
@Override
public void readFromNBT(NBTTagCompound tagCompound) {
super.readFromNBT(tagCompound);
meta = tagCompound.getInteger("meta");
rotation = tagCompound.getInteger("rotation");
}
@Override
public void writeToNBT(NBTTagCompound tagCompound) {
super.writeToNBT(tagCompound);
tagCompound.setInteger("meta", meta);
tagCompound.setInteger("rotation", rotation);
}
}

View file

@ -87,12 +87,12 @@ public class TileLesu extends TilePowerAcceptor {//TODO wrench
@Override
public boolean canAcceptEnergy(ForgeDirection direction) {
return Functions.getIntDirFromDirection(direction) != getMeta();
return Functions.getIntDirFromDirection(direction) != getRotation();
}
@Override
public boolean canProvideEnergy(ForgeDirection direction) {
return Functions.getIntDirFromDirection(direction) == getMeta();
return Functions.getIntDirFromDirection(direction) == getRotation();
}
@Override