Search in sources :

Example 1 with LinkageManager

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));
    }
}
Also used : EntityMinecart(net.minecraft.entity.item.EntityMinecart) LinkageManager(mods.railcraft.common.carts.LinkageManager)

Aggregations

LinkageManager (mods.railcraft.common.carts.LinkageManager)1 EntityMinecart (net.minecraft.entity.item.EntityMinecart)1