}
@Override
public boolean matches(IRoutingTile tile, EntityMinecart cart) {
if (cart instanceof IPaintedCart) {
IPaintedCart pCart = (IPaintedCart) cart;
return (primary == null || primary.ordinal() == pCart.getPrimaryColor()) && (secondary == null || secondary.ordinal() == pCart.getSecondaryColor());
}
return false;
}