EntityPlayer entiyPlayer = (EntityPlayer) player;
if (entiyPlayer == null)
return;
if (!(entiyPlayer.ridingEntity instanceof EntityMinecart))
return;
Train train = LinkageManager.instance().getTrain((EntityMinecart) entiyPlayer.ridingEntity);
if (binding == LOCOMOTIVE_INCREASE_SPEED) {
for (EntityMinecart cart : train) {
if (cart instanceof EntityLocomotive) {
EntityLocomotive loco = (EntityLocomotive) cart;
if (loco.canControl(entiyPlayer.getGameProfile()))