if(source != TravelSource.STAFF_BLINK) {
TileEntity te = player.worldObj.getTileEntity(coord.x, coord.y, coord.z);
if(te instanceof ITravelAccessable) {
ITravelAccessable ta = (ITravelAccessable) te;
if(!ta.canBlockBeAccessed(player)) {
player.addChatComponentMessage(new ChatComponentTranslation("enderio.gui.travelAccessable.unauthorised"));
return false;
}
}
}
int requiredPower = 0;
requiredPower = getRequiredPower(player, source, coord);
if(requiredPower < 0) {
return false;
}
if(!isInRangeTarget(player, coord, source.maxDistanceTravelledSq)) {
if(source != TravelSource.STAFF_BLINK) {
player.addChatComponentMessage(new ChatComponentTranslation("enderio.blockTravelPlatform.outOfRange"));
}
return false;
}
if(!isValidTarget(player, coord, source)) {
if(source != TravelSource.STAFF_BLINK) {
player.addChatComponentMessage(new ChatComponentTranslation("enderio.blockTravelPlatform.invalidTarget"));
}
return false;
}
sendTravelEvent(coord, source, requiredPower, conserveMomentum);
for (int i = 0; i < 6; ++i) {