Changed access to use this qualifier

This commit is contained in:
yueh
2014-12-29 15:13:47 +01:00
parent 2a5e57a59b
commit f471513bd0
604 changed files with 11573 additions and 11573 deletions
@@ -49,31 +49,31 @@ public class TileCraftingMonitorTile extends TileCraftingTile implements IColora
@TileEvent(TileEventType.NETWORK_READ)
public boolean readFromStream_TileCraftingMonitorTile(ByteBuf data) throws IOException
{
AEColor oldPaintedColor = paintedColor;
paintedColor = AEColor.values()[data.readByte()];
AEColor oldPaintedColor = this.paintedColor;
this.paintedColor = AEColor.values()[data.readByte()];
boolean hasItem = data.readBoolean();
if ( hasItem )
dspPlay = AEItemStack.loadItemStackFromPacket( data );
this.dspPlay = AEItemStack.loadItemStackFromPacket( data );
else
dspPlay = null;
this.dspPlay = null;
updateList = true;
return oldPaintedColor != paintedColor; // tesr!
this.updateList = true;
return oldPaintedColor != this.paintedColor; // tesr!
}
@TileEvent(TileEventType.NETWORK_WRITE)
public void writeToStream_TileCraftingMonitorTile(ByteBuf data) throws IOException
{
data.writeByte( paintedColor.ordinal() );
data.writeByte( this.paintedColor.ordinal() );
if ( dspPlay == null )
if ( this.dspPlay == null )
data.writeBoolean( false );
else
{
data.writeBoolean( true );
dspPlay.writeToPacket( data );
this.dspPlay.writeToPacket( data );
}
}
@@ -81,13 +81,13 @@ public class TileCraftingMonitorTile extends TileCraftingTile implements IColora
public void readFromNBT_TileCraftingMonitorTile(NBTTagCompound data)
{
if ( data.hasKey( "paintedColor" ) )
paintedColor = AEColor.values()[data.getByte( "paintedColor" )];
this.paintedColor = AEColor.values()[data.getByte( "paintedColor" )];
}
@TileEvent(TileEventType.WORLD_NBT_WRITE)
public void writeToNBT_TileCraftingMonitorTile(NBTTagCompound data)
{
data.setByte( "paintedColor", (byte) paintedColor.ordinal() );
data.setByte( "paintedColor", (byte) this.paintedColor.ordinal() );
}
@Override
@@ -104,47 +104,47 @@ public class TileCraftingMonitorTile extends TileCraftingTile implements IColora
public void setJob(IAEItemStack is)
{
if ( (is == null) != (dspPlay == null) )
if ( (is == null) != (this.dspPlay == null) )
{
dspPlay = is == null ? null : is.copy();
markForUpdate();
this.dspPlay = is == null ? null : is.copy();
this.markForUpdate();
}
else if ( is != null && dspPlay != null )
else if ( is != null && this.dspPlay != null )
{
if ( is.getStackSize() != dspPlay.getStackSize() )
if ( is.getStackSize() != this.dspPlay.getStackSize() )
{
dspPlay = is.copy();
markForUpdate();
this.dspPlay = is.copy();
this.markForUpdate();
}
}
}
public IAEItemStack getJobProgress()
{
return dspPlay;// AEItemStack.create( new ItemStack( Items.diamond, 64 ) );
return this.dspPlay;// AEItemStack.create( new ItemStack( Items.diamond, 64 ) );
}
@Override
public boolean requiresTESR()
{
return getJobProgress() != null;
return this.getJobProgress() != null;
}
@Override
public AEColor getColor()
{
return paintedColor;
return this.paintedColor;
}
@Override
public boolean recolourBlock(ForgeDirection side, AEColor newPaintedColor, EntityPlayer who)
{
if ( paintedColor == newPaintedColor )
if ( this.paintedColor == newPaintedColor )
return false;
paintedColor = newPaintedColor;
markDirty();
markForUpdate();
this.paintedColor = newPaintedColor;
this.markDirty();
this.markForUpdate();
return true;
}
}