@Override
public boolean onItemUseFirst(ItemStack stack, EntityPlayer player, World world, int x, int y, int z, int side, float hitX, float hitY, float hitZ) {
if (Game.isNotHost(world))
return false;
IElectricGrid gridObject = GridTools.getGridObjectAt(world, x, y, z);
boolean returnValue = false;
if (gridObject != null) {
IElectricGrid.ChargeHandler handler = gridObject.getChargeHandler();
ChatPlugin.sendLocalizedChat(player, "railcraft.gui.electric.meter.charge", handler.getCharge(), handler.getCapacity(), handler.getLosses());
returnValue = true;
}
return returnValue;
}