use of mods.railcraft.common.carts.LinkageManager in project Railcraft by Railcraft.
the class PacketShuntingAura method writeData.
@Override
public void writeData(RailcraftOutputStream data) throws IOException {
data.writeInt(carts.size());
for (EntityMinecart cart : carts) {
data.writeUUID(cart.getPersistentID());
data.writeUUID(Train.getTrainUUID(cart));
LinkageManager lm = LinkageManager.instance();
data.writeUUID(lm.getLinkA(cart));
data.writeUUID(lm.getLinkB(cart));
}
}
Aggregations