Updated UE network interface

This commit is contained in:
Calclavia 2013-12-27 16:57:42 +08:00
parent b9abf206c7
commit c8c0033186
3 changed files with 5 additions and 18 deletions

@ -1 +1 @@
Subproject commit 35884df1089997aad2f6880747724645bdd6b649 Subproject commit 2bf099c7dc833192f9a8c8e8f9d2cce49bf9a03d

View file

@ -30,7 +30,8 @@ public abstract class PartConductor extends PartAdvanced implements IConductor
@Override @Override
public long onReceiveEnergy(ForgeDirection from, long receive, boolean doReceive) public long onReceiveEnergy(ForgeDirection from, long receive, boolean doReceive)
{ {
// new Vector3(tile()).modifyPositionFromSide(from).getTileEntity(world()) // new
// Vector3(tile()).modifyPositionFromSide(from).getTileEntity(world())
return this.getNetwork().produce(this, from.getOpposite(), receive, doReceive); return this.getNetwork().produce(this, from.getOpposite(), receive, doReceive);
} }
@ -70,8 +71,7 @@ public abstract class PartConductor extends PartAdvanced implements IConductor
} }
/** /**
* EXTERNAL USE * EXTERNAL USE Can this wire be connected by another block?
* Can this wire be connected by another block?
*/ */
@Override @Override
public boolean canConnect(ForgeDirection direction) public boolean canConnect(ForgeDirection direction)
@ -183,6 +183,6 @@ public abstract class PartConductor extends PartAdvanced implements IConductor
public void load(NBTTagCompound nbt) public void load(NBTTagCompound nbt)
{ {
super.load(nbt); super.load(nbt);
this.getNetwork().setBufferFor(nbt.getLong("savedBuffer")); this.getNetwork().setBufferFor(this, nbt.getLong("savedBuffer"));
} }
} }

View file

@ -165,17 +165,4 @@ public class TraitConductor extends TileMultipart implements IConductor
return capacitance; return capacitance;
} }
@Override
public long getSavedBuffer()
{
return 0;
}
@Override
public void setSaveBuffer(long energy)
{
}
} }