@Override
public boolean onBlockActivated (World worldIn, BlockPos pos, IBlockState state, EntityPlayer playerIn, EnumHand hand, EnumFacing side, float hitX, float hitY, float hitZ) {
if (!worldIn.isRemote) {
final TileEntity tile = worldIn.getTileEntity(pos);
if (tile.hasCapability(TeslaCapabilities.CAPABILITY_HOLDER, side)) {
final ITeslaHolder holder = tile.getCapability(TeslaCapabilities.CAPABILITY_HOLDER, side);
TextUtils.sendSpamlessMessage(this.MESSAGE_ID, new TextComponentString(I18n.format("tooltip.teslatest.battery.normal", holder.getStoredPower(), holder.getCapacity())));
}
}
return super.onBlockActivated(worldIn, pos, state, playerIn, hand, side, hitX, hitY, hitZ);
}