Nameable CPUs.

This commit is contained in:
AlgorithmX2
2014-07-15 22:26:12 -05:00
parent e64bf91789
commit e49864e295
9 changed files with 121 additions and 9 deletions
+18 -2
View File
@@ -578,7 +578,7 @@ public abstract class AEBaseContainer extends Container
{
if ( syncData.containsKey( idx ) )
{
syncData.get( idx ).update( value );
syncData.get( idx ).update( (long) value );
return;
}
@@ -588,13 +588,22 @@ public abstract class AEBaseContainer extends Container
{
if ( syncData.containsKey( idx ) )
{
syncData.get( idx ).update( value );
syncData.get( idx ).update( (long) value );
return;
}
updateProgressBar( idx, (int) value );
}
public void stringSync(int idx, String value)
{
if ( syncData.containsKey( idx ) )
{
syncData.get( idx ).update( value );
return;
}
}
private void prepareSync()
{
for (Field f : getClass().getFields())
@@ -625,6 +634,12 @@ public abstract class AEBaseContainer extends Container
if ( tileEntity instanceof ICustomNameObject )
name = (ICustomNameObject) tileEntity;
if ( obj instanceof ICustomNameObject )
name = (ICustomNameObject) obj;
if ( this instanceof ICustomNameObject )
name = (ICustomNameObject) this;
if ( name != null )
{
if ( name.hasCustomName() )
@@ -1055,4 +1070,5 @@ public abstract class AEBaseContainer extends Container
{
}
}