Nameable CPUs.
This commit is contained in:
@@ -83,6 +83,7 @@ public class CraftingCPUCluster implements IAECluster, ICraftingCPU
|
||||
public ICraftingLink myLastLink;
|
||||
|
||||
MachineSource machineSrc = null;
|
||||
public String myName = "";
|
||||
|
||||
int accelerator = 0;
|
||||
public WorldCoord min;
|
||||
@@ -244,7 +245,7 @@ public class CraftingCPUCluster implements IAECluster, ICraftingCPU
|
||||
|
||||
te.isCoreBlock = false;
|
||||
te.markDirty();
|
||||
tiles.add( te );
|
||||
tiles.push( te );
|
||||
|
||||
if ( te.isStorage() )
|
||||
{
|
||||
@@ -995,6 +996,7 @@ public class CraftingCPUCluster implements IAECluster, ICraftingCPU
|
||||
}
|
||||
|
||||
updateCPU();
|
||||
updateName();
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -1003,4 +1005,27 @@ public class CraftingCPUCluster implements IAECluster, ICraftingCPU
|
||||
return machineSrc;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName()
|
||||
{
|
||||
return myName;
|
||||
}
|
||||
|
||||
public void updateName()
|
||||
{
|
||||
myName = "";
|
||||
for (TileCraftingTile te : tiles)
|
||||
{
|
||||
|
||||
if ( te.hasCustomName() )
|
||||
{
|
||||
if ( myName.length() > 0 )
|
||||
myName += " " + te.getCustomName();
|
||||
else
|
||||
myName = te.getCustomName();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user