Hi.
I'm currently working on some basic cables. I want those cables to work the way that the TileEntityPipeTransferEnergy transfers the energy from TileEntityPipeTransferEnergy A to B. The transfer pipes should be connect
with some cables, but the energy should not go through these cables.
So actually, the energy goes directly from point A to B while skipping all cables along the way. This should however only work when point A and B are connected with a cable.
I
Ok, I've just finished the new code, here it goes:
The transfer pipe for sending and receiving energy:
public class TileEntityPipeTransferEnergy extends TileEntityEnergy {
//private Map<BlockPos, Integer> connected_weight = new HashMap<>(); // with pre-calculated weight, no clue how to do this... :(
private Set<BlockPos> connected = new HashSet<>(); // without pre-calculated weight
public boolean shouldRecalculate = false;
pu